Files
ThreadPilot/Tests/ThreadPilot.Core.Tests/SystemTweaksServiceTests.cs
T
Prime Build 1540aeb7be Polish Windows 11 tweaks and add one-click updates (#40)
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.
2026-08-01 13:50:11 +02:00

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);
}
}
}