@@ -46,7 +46,7 @@ public void DisposeShouldCloseBraceAndDecreaseIndentation()
4646
4747 Assert . AreEqual ( initialIndent , codeBlocker . CurrentIndent ) ;
4848 string result = codeBlocker . ToString ( ) ;
49- Assert . IsTrue ( result . EndsWith ( "}; \r \n " , StringComparison . Ordinal ) , "Result should end with closing brace, semicolon, and newline" ) ;
49+ Assert . IsTrue ( result . EndsWith ( "}\r \n " , StringComparison . Ordinal ) , "Result should end with closing brace and newline" ) ;
5050 }
5151
5252 [ TestMethod ]
@@ -66,7 +66,7 @@ public void UsingStatementShouldProperlyOpenAndCloseScope()
6666 // Assert
6767
6868 string result = codeBlocker . ToString ( ) ;
69- string expected = "{\r \n \t content inside scope\r \n }; \r \n " ;
69+ string expected = "{\r \n \t content inside scope\r \n }\r \n " ;
7070 Assert . AreEqual ( expected , result ) ;
7171 }
7272
@@ -92,7 +92,7 @@ public void NestedScopesShouldMaintainProperIndentation()
9292 // Assert
9393
9494 string result = codeBlocker . ToString ( ) ;
95- string expected = "{\r \n \t level 1\r \n \t {\r \n \t \t level 2\r \n \t }; \r \n \t back to level 1\r \n }; \r \n " ;
95+ string expected = "{\r \n \t level 1\r \n \t {\r \n \t \t level 2\r \n \t }\r \n \t back to level 1\r \n }\r \n " ;
9696 Assert . AreEqual ( expected , result ) ;
9797 }
9898
@@ -128,7 +128,7 @@ public void ScopeWithoutContentShouldStillFormatCorrectly()
128128 // Assert
129129
130130 string result = codeBlocker . ToString ( ) ;
131- string expected = "{\r \n }; \r \n " ;
131+ string expected = "{\r \n }\r \n " ;
132132 Assert . AreEqual ( expected , result ) ;
133133 }
134134
@@ -154,7 +154,7 @@ public void MultipleSequentialScopesShouldFormatCorrectly()
154154 // Assert
155155
156156 string result = codeBlocker . ToString ( ) ;
157- string expected = "{\r \n \t scope 1 content\r \n }; \r \n {\r \n \t scope 2 content\r \n }; \r \n " ;
157+ string expected = "{\r \n \t scope 1 content\r \n }\r \n {\r \n \t scope 2 content\r \n }\r \n " ;
158158 Assert . AreEqual ( expected , result ) ;
159159 }
160160
@@ -177,7 +177,7 @@ public void ScopeWithCustomIndentStringShouldWork()
177177 // Assert
178178
179179 string result = codeBlocker . ToString ( ) ;
180- string expected = "{\r \n custom indented content\r \n }; \r \n " ;
180+ string expected = "{\r \n custom indented content\r \n }\r \n " ;
181181 Assert . AreEqual ( expected , result ) ;
182182 Assert . AreEqual ( customIndent , codeBlocker . IndentString ) ;
183183 }
@@ -268,7 +268,7 @@ public void ScopeWithMixedManualIndentAndScopeIndentShouldWork()
268268 // Note: After manual Outdent within scope, the closing }; will be at the current indent level
269269 // The scope ends at whatever the current indent is when Dispose() is called
270270
271- string expected = "\t {\r \n \t \t double indented\r \n \t single indented\r \n }; \r \n back to manual indent\r \n " ;
271+ string expected = "\t {\r \n \t \t double indented\r \n \t single indented\r \n }\r \n back to manual indent\r \n " ;
272272 Assert . AreEqual ( expected , result ) ;
273273 }
274274
@@ -297,7 +297,7 @@ public void ScopeWithCurrentIndentSetterShouldWork()
297297 Assert . IsTrue ( result . Contains ( "{\r \n " , StringComparison . Ordinal ) , "Result should contain opening brace with newline" ) ;
298298 Assert . IsTrue ( result . Contains ( "\t \t \t \t \t level 5 content\r \n " , StringComparison . Ordinal ) , "Result should contain content with 5 tabs indentation" ) ;
299299
300- Assert . IsTrue ( result . EndsWith ( "}; \r \n " , StringComparison . Ordinal ) , "Result should end with closing brace, semicolon, and newline" ) ;
300+ Assert . IsTrue ( result . EndsWith ( "}\r \n " , StringComparison . Ordinal ) , "Result should end with closing brace and newline" ) ;
301301 }
302302
303303 [ TestMethod ]
@@ -347,7 +347,7 @@ public void ScopeWithEmptyCustomIndentStringShouldWork()
347347 // Assert
348348
349349 string result = codeBlocker . ToString ( ) ;
350- string expected = "{\r \n no indent\r \n }; \r \n " ;
350+ string expected = "{\r \n no indent\r \n }\r \n " ;
351351 Assert . AreEqual ( expected , result ) ;
352352 }
353353
0 commit comments