Skip to content

Commit fdfd809

Browse files
authored
style(tests): remove code regions from Scope tests (#441)
decisions/2026-01-21-no-code-regions.md (accepted, applyTo **/*.cs) forbids code regions. CSharpCodeBuilderTests.Scope.cs still contained two #region/#endregion pairs. Remove the four directives; no behavior change.
1 parent 0caae59 commit fdfd809

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎tests/NetEvolve.CodeBuilder.Tests.Unit/CSharpCodeBuilderTests.Scope.cs‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
public partial class CSharpCodeBuilderTests
66
{
7-
#region Scope Tests
8-
97
[Test]
108
public async Task Scope_Should_Create_Disposable_Handler()
119
{
@@ -138,10 +136,6 @@ public async Task Scope_With_Tabs_Should_Use_Tab_Indentation()
138136
_ = await Assert.That(result).IsEqualTo("{" + Environment.NewLine + "\tHello}" + Environment.NewLine);
139137
}
140138

141-
#endregion
142-
143-
#region ScopeLine Tests
144-
145139
[Test]
146140
public async Task ScopeLine_Should_Append_Line_Before_Scope()
147141
{
@@ -432,6 +426,4 @@ public class Person
432426
""".Replace("\r\n", "\n", StringComparison.Ordinal);
433427
_ = await Assert.That(result).IsEqualTo(expected);
434428
}
435-
436-
#endregion
437429
}

0 commit comments

Comments
 (0)