91287c9860
* Fix startup binding and prep v1.2.0 * Polish v1.2.0 validation UX * Fix final v1.2.0 validation polish * Make Activity Logs a ThreadPilot audit trail * Fix high scheduling registry value * Polish process list and automation settings UX * Fix process context menu separator styling * Theme process context menu visuals * Stabilize process context menu styling * Remove process menu icon gutter * Polish startup and idle process refresh * Finalize PR22 release polish
25 lines
719 B
C#
25 lines
719 B
C#
namespace ThreadPilot.Core.Tests
|
|
{
|
|
using ThreadPilot.Services;
|
|
|
|
public sealed class SystemTweaksServiceTests
|
|
{
|
|
[Fact]
|
|
public void GetHighSchedulingCategoryRegistryValue_WhenEnabled_ReturnsWin32PrioritySeparation26()
|
|
{
|
|
var value = SystemTweaksService.GetHighSchedulingCategoryRegistryValue(enabled: true);
|
|
|
|
Assert.Equal(26, value);
|
|
Assert.Equal(0x1A, value);
|
|
}
|
|
|
|
[Fact]
|
|
public void GetHighSchedulingCategoryRegistryValue_WhenDisabled_KeepsDefaultRevertValue()
|
|
{
|
|
var value = SystemTweaksService.GetHighSchedulingCategoryRegistryValue(enabled: false);
|
|
|
|
Assert.Equal(2, value);
|
|
}
|
|
}
|
|
}
|