Skip to content

Commit 8423acf

Browse files
committed
Change & fix
1 parent 6b507b0 commit 8423acf

2 files changed

Lines changed: 4 additions & 67 deletions

File tree

docs/TESTING.md

Lines changed: 0 additions & 65 deletions
This file was deleted.

src/PleaseTweakWindows.Tests/TweakRegistryTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,10 @@ public void RunAll_ContainsOnlyReversibleToggleActions()
236236
{
237237
foreach (var tweak in _registry.GetTweaks())
238238
{
239-
tweak.RunAllSubTweaks.Should().OnlyContain(
240-
sub => sub.Type == SubTweakType.Toggle && !string.IsNullOrWhiteSpace(sub.RevertAction));
239+
// NotContain (not OnlyContain, which fails on the empty Run-All of button-only categories).
240+
tweak.RunAllSubTweaks.Should().NotContain(
241+
sub => sub.Type != SubTweakType.Toggle || string.IsNullOrWhiteSpace(sub.RevertAction),
242+
$"Run All for '{tweak.Title}' must include only reversible toggles");
241243
}
242244
}
243245

0 commit comments

Comments
 (0)