1540aeb7be
Verify persisted Windows tweak state on startup, modernize selection styling, and make in-app updates check every launch, install automatically after consent, preserve settings, and relaunch ThreadPilot.
24 lines
693 B
C#
24 lines
693 B
C#
namespace ThreadPilot.Core.Tests
|
|
{
|
|
using ThreadPilot.Services;
|
|
|
|
public sealed class SystemTweaksServiceTests
|
|
{
|
|
[Fact]
|
|
public void GetHighSchedulingCategoryRegistryValue_WhenEnabled_ReturnsHigh()
|
|
{
|
|
var value = SystemTweaksService.GetHighSchedulingCategoryRegistryValue(enabled: true);
|
|
|
|
Assert.Equal("High", value);
|
|
}
|
|
|
|
[Fact]
|
|
public void GetHighSchedulingCategoryRegistryValue_WhenDisabled_KeepsDefaultRevertValue()
|
|
{
|
|
var value = SystemTweaksService.GetHighSchedulingCategoryRegistryValue(enabled: false);
|
|
|
|
Assert.Equal("Medium", value);
|
|
}
|
|
}
|
|
}
|