Skip to content

Commit 4dfc9e4

Browse files
Format changes tests again. Fixed again and removed format
1 parent ff55eed commit 4dfc9e4

18 files changed

Lines changed: 94 additions & 94 deletions

test/Hyperbee.Expressions.Tests/BlockAsyncLoopTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Hyperbee.Expressions.Tests;
77
[TestClass]
88
public class BlockAsyncLoopTests
99
{
10-
[TestMethod]
10+
[DataTestMethod]
1111
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
1212
[DataRow( CompleterType.Immediate, CompilerType.System )]
1313
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]
@@ -49,7 +49,7 @@ public async Task AsyncBlock_ShouldAwaitSuccessfully_WithAwaitBeforeBreak( Compl
4949
Assert.AreEqual( 1, result ); // Loop should break after 1 iteration
5050
}
5151

52-
[TestMethod]
52+
[DataTestMethod]
5353
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
5454
[DataRow( CompleterType.Immediate, CompilerType.System )]
5555
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]
@@ -92,7 +92,7 @@ public async Task AsyncBlock_ShouldAwaitSuccessfully_WithAwaitAfterLoop( Complet
9292
Assert.AreEqual( 2, result ); // Loop breaks after 2 iterations
9393
}
9494

95-
[TestMethod]
95+
[DataTestMethod]
9696
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
9797
[DataRow( CompleterType.Immediate, CompilerType.System )]
9898
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]
@@ -136,7 +136,7 @@ public async Task AsyncBlock_ShouldAwaitSuccessfully_WithAwaitBeforeContinue( Co
136136
Assert.AreEqual( 2, result ); // Loop continues past the first iteration
137137
}
138138

139-
[TestMethod]
139+
[DataTestMethod]
140140
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
141141
[DataRow( CompleterType.Immediate, CompilerType.System )]
142142
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]
@@ -180,7 +180,7 @@ public async Task AsyncBlock_ShouldAwaitSuccessfully_WithAwaitAfterContinue( Com
180180
Assert.AreEqual( 2, result ); // Loop processes all iterations
181181
}
182182

183-
[TestMethod]
183+
[DataTestMethod]
184184
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
185185
[DataRow( CompleterType.Immediate, CompilerType.System )]
186186
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]
@@ -223,7 +223,7 @@ public async Task AsyncBlock_ShouldAwaitSuccessfully_WithMultipleAwaitsInLoop( C
223223
Assert.AreEqual( 1, result ); // Loop processes all iterations
224224
}
225225

226-
[TestMethod]
226+
[DataTestMethod]
227227
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
228228
[DataRow( CompleterType.Immediate, CompilerType.System )]
229229
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]

test/Hyperbee.Expressions.Tests/BlockAsyncTryCatchTests.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Hyperbee.Expressions.Tests;
77
[TestClass]
88
public class BlockAsyncTryCatchTests
99
{
10-
[TestMethod]
10+
[DataTestMethod]
1111
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
1212
[DataRow( CompleterType.Immediate, CompilerType.System )]
1313
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]
@@ -37,7 +37,7 @@ public async Task AsyncBlock_ShouldAwaitSuccessfully_WithAwaitInTryBlock( Comple
3737
Assert.AreEqual( 10, result );
3838
}
3939

40-
[TestMethod]
40+
[DataTestMethod]
4141
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
4242
[DataRow( CompleterType.Immediate, CompilerType.System )]
4343
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]
@@ -77,7 +77,7 @@ public async Task AsyncBlock_ShouldCatchExceptionSuccessfully_WithAwaitInCatchBl
7777

7878
}
7979

80-
[TestMethod]
80+
[DataTestMethod]
8181
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
8282
[DataRow( CompleterType.Immediate, CompilerType.System )]
8383
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]
@@ -120,7 +120,7 @@ public async Task AsyncBlock_ShouldHandleExceptionSuccessfully_WithTryCatchFinal
120120
Assert.AreEqual( 50, result ); // Catch block handles the exception and returns 30
121121
}
122122

123-
[TestMethod]
123+
[DataTestMethod]
124124
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
125125
[DataRow( CompleterType.Immediate, CompilerType.System )]
126126
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]
@@ -149,7 +149,7 @@ public async Task AsyncBlock_ShouldAwaitSuccessfully_WithAwaitInTryAndFinallyBlo
149149
Assert.AreEqual( 25, result ); // Catch block handles the exception and returns 30
150150
}
151151

152-
[TestMethod]
152+
[DataTestMethod]
153153
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
154154
[DataRow( CompleterType.Immediate, CompilerType.System )]
155155
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]
@@ -183,7 +183,7 @@ public async Task AsyncBlock_ShouldAwaitSuccessfully_WithAwaitInTryCatchAndFinal
183183
}
184184

185185

186-
[TestMethod]
186+
[DataTestMethod]
187187
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
188188
[DataRow( CompleterType.Immediate, CompilerType.System )]
189189
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]
@@ -219,7 +219,7 @@ public async Task AsyncBlock_ShouldAwaitSuccessfully_WithAwaitAfterThrow( Comple
219219
Assert.AreEqual( 50, result ); // Outer catch handles the exception
220220
}
221221

222-
[TestMethod]
222+
[DataTestMethod]
223223
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
224224
[DataRow( CompleterType.Immediate, CompilerType.System )]
225225
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]
@@ -261,7 +261,7 @@ public async Task AsyncBlock_ShouldCatchMultipleExceptionsInNestedTryBlocks( Com
261261
Assert.AreEqual( 50, result ); // Outer catch handles the exception
262262
}
263263

264-
[TestMethod]
264+
[DataTestMethod]
265265
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
266266
[DataRow( CompleterType.Immediate, CompilerType.System )]
267267
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]
@@ -313,7 +313,7 @@ public async Task AsyncBlock_ShouldAwaitSuccessfully_WithComplexNestedTryBlock(
313313
Assert.AreEqual( 60, result );
314314
}
315315

316-
[TestMethod]
316+
[DataTestMethod]
317317
[DataRow( CompleterType.Immediate, CompilerType.Fast )]
318318
[DataRow( CompleterType.Immediate, CompilerType.System )]
319319
[DataRow( CompleterType.Immediate, CompilerType.Interpret )]
@@ -390,7 +390,7 @@ public async Task AsyncBlock_ShouldAwaitSuccessfully_WithComplexNestedTryFinally
390390
Assert.AreEqual( 40, result );
391391
}
392392

393-
[TestMethod]
393+
[DataTestMethod]
394394
[DataRow( CompilerType.Fast )]
395395
[DataRow( CompilerType.System )]
396396
[DataRow( CompilerType.Interpret )]

test/Hyperbee.Expressions.Tests/BlockYieldBasicTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Hyperbee.Expressions.Tests;
77
[TestClass]
88
public class BlockYieldBasicTests
99
{
10-
[TestMethod]
10+
[DataTestMethod]
1111
[DataRow( CompilerType.Fast )]
1212
[DataRow( CompilerType.System )]
1313
[DataRow( CompilerType.Interpret )]

test/Hyperbee.Expressions.Tests/BlockYieldConditionalTests.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Hyperbee.Expressions.Tests;
88
[TestClass]
99
public class BlockYieldConditionalTests
1010
{
11-
[TestMethod]
11+
[DataTestMethod]
1212
[DataRow( CompilerType.Fast )]
1313
[DataRow( CompilerType.System )]
1414
[DataRow( CompilerType.Interpret )]
@@ -32,7 +32,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithIfThen( CompilerType compiler
3232
Assert.AreEqual( 5, result );
3333
}
3434

35-
[TestMethod]
35+
[DataTestMethod]
3636
[DataRow( CompilerType.Fast )]
3737
[DataRow( CompilerType.System )]
3838
[DataRow( CompilerType.Interpret )]
@@ -57,7 +57,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithIfThenElse( CompilerType comp
5757
Assert.AreEqual( 5, result );
5858
}
5959

60-
[TestMethod]
60+
[DataTestMethod]
6161
[DataRow( CompilerType.Fast )]
6262
[DataRow( CompilerType.System )]
6363
[DataRow( CompilerType.Interpret )]
@@ -87,7 +87,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithIfThenElseBreaks( CompilerTyp
8787
Assert.AreEqual( 10, result[0] );
8888
}
8989

90-
[TestMethod]
90+
[DataTestMethod]
9191
[DataRow( CompilerType.Fast )]
9292
[DataRow( CompilerType.System )]
9393
[DataRow( CompilerType.Interpret )]
@@ -112,7 +112,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithIfThen_TrueBreak( CompilerTyp
112112
Assert.AreEqual( 0, result.Length );
113113
}
114114

115-
[TestMethod]
115+
[DataTestMethod]
116116
[DataRow( CompilerType.Fast )]
117117
[DataRow( CompilerType.System )]
118118
[DataRow( CompilerType.Interpret )]
@@ -138,7 +138,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithIfThen_FalseBreak( CompilerTy
138138
Assert.AreEqual( 5, result[0] );
139139
}
140140

141-
[TestMethod]
141+
[DataTestMethod]
142142
[DataRow( CompilerType.Fast )]
143143
[DataRow( CompilerType.System )]
144144
[DataRow( CompilerType.Interpret )]
@@ -171,7 +171,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithConditionalAssignment( Compil
171171
Assert.AreEqual( 1, result.Skip( 1 ).First() );
172172
}
173173

174-
[TestMethod]
174+
[DataTestMethod]
175175
[DataRow( CompilerType.Fast )]
176176
[DataRow( CompilerType.System )]
177177
[DataRow( CompilerType.Interpret )]
@@ -198,7 +198,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithConditionalInTest( CompilerTy
198198
Assert.AreEqual( 10, result.Skip( 1 ).First() );
199199
}
200200

201-
[TestMethod]
201+
[DataTestMethod]
202202
[DataRow( CompilerType.Fast )]
203203
[DataRow( CompilerType.System )]
204204
[DataRow( CompilerType.Interpret )]
@@ -221,7 +221,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithAwaitBeforeAndAfterConditiona
221221
Assert.AreEqual( 20, result[1] );
222222
}
223223

224-
[TestMethod]
224+
[DataTestMethod]
225225
[DataRow( CompilerType.Fast )]
226226
[DataRow( CompilerType.System )]
227227
[DataRow( CompilerType.Interpret )]
@@ -245,7 +245,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithFalseCondition( CompilerType
245245
Assert.AreEqual( 20, result.First() ); // False branch should be awaited and return 20
246246
}
247247

248-
[TestMethod]
248+
[DataTestMethod]
249249
[DataRow( CompilerType.Fast )]
250250
[DataRow( CompilerType.System )]
251251
[DataRow( CompilerType.Interpret )]
@@ -274,7 +274,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithComplexConditionalLogic( Comp
274274
Assert.AreEqual( 40, result[1] );
275275
}
276276

277-
[TestMethod]
277+
[DataTestMethod]
278278
[DataRow( CompilerType.Fast )]
279279
[DataRow( CompilerType.System )]
280280
[DataRow( CompilerType.Interpret )]

test/Hyperbee.Expressions.Tests/BlockYieldLoopTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Hyperbee.Expressions.Tests;
88
[TestClass]
99
public class BlockYieldLoopTests
1010
{
11-
[TestMethod]
11+
[DataTestMethod]
1212
[DataRow( CompilerType.Fast )]
1313
[DataRow( CompilerType.System )]
1414
[DataRow( CompilerType.Interpret )]
@@ -44,7 +44,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithYieldBeforeBreak( CompilerTyp
4444
Assert.AreEqual( 1, result.First() ); // Loop should break after 1 iteration
4545
}
4646

47-
[TestMethod]
47+
[DataTestMethod]
4848
[DataRow( CompilerType.Fast )]
4949
[DataRow( CompilerType.System )]
5050
[DataRow( CompilerType.Interpret )]
@@ -81,7 +81,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithYieldAfterLoop( CompilerType
8181
Assert.AreEqual( 5, result.First() ); // Loop breaks after 2 iterations
8282
}
8383

84-
[TestMethod]
84+
[DataTestMethod]
8585
[DataRow( CompilerType.Fast )]
8686
[DataRow( CompilerType.System )]
8787
[DataRow( CompilerType.Interpret )]
@@ -117,7 +117,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithOutLoopBreakOrContinue( Compi
117117
Assert.AreEqual( 2, result[1] );
118118
}
119119

120-
[TestMethod]
120+
[DataTestMethod]
121121
[DataRow( CompilerType.Fast )]
122122
[DataRow( CompilerType.System )]
123123
[DataRow( CompilerType.Interpret )]
@@ -157,7 +157,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithYieldBeforeContinue( Compiler
157157
Assert.AreEqual( 2, result[1] );
158158
}
159159

160-
[TestMethod]
160+
[DataTestMethod]
161161
[DataRow( CompilerType.Fast )]
162162
[DataRow( CompilerType.System )]
163163
[DataRow( CompilerType.Interpret )]
@@ -196,7 +196,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithYieldAfterContinue( CompilerT
196196
Assert.AreEqual( 2, result[0] );
197197
}
198198

199-
[TestMethod]
199+
[DataTestMethod]
200200
[DataRow( CompilerType.Fast )]
201201
[DataRow( CompilerType.System )]
202202
[DataRow( CompilerType.Interpret )]
@@ -232,7 +232,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithMultipleYieldInLoop( Compiler
232232
Assert.AreEqual( 1, result[1] );
233233
}
234234

235-
[TestMethod]
235+
[DataTestMethod]
236236
[DataRow( CompilerType.Fast )]
237237
[DataRow( CompilerType.System )]
238238
[DataRow( CompilerType.Interpret )]

test/Hyperbee.Expressions.Tests/BlockYieldSwitchTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Hyperbee.Expressions.Tests;
88
[TestClass]
99
public class BlockYieldSwitchTests
1010
{
11-
[TestMethod]
11+
[DataTestMethod]
1212
[DataRow( CompilerType.Fast )]
1313
[DataRow( CompilerType.System )]
1414
[DataRow( CompilerType.Interpret )]
@@ -38,7 +38,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithYieldInSwitchValue( CompilerT
3838
Assert.AreEqual( 1, result[0] );
3939
}
4040

41-
[TestMethod]
41+
[DataTestMethod]
4242
[DataRow( CompilerType.Fast )]
4343
[DataRow( CompilerType.System )]
4444
[DataRow( CompilerType.Interpret )]
@@ -65,7 +65,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithAwaitInDefaultBody( CompilerT
6565
Assert.AreEqual( 99, result[0] );
6666
}
6767

68-
[TestMethod]
68+
[DataTestMethod]
6969
[DataRow( CompilerType.Fast )]
7070
[DataRow( CompilerType.System )]
7171
[DataRow( CompilerType.Interpret )]
@@ -95,7 +95,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithAwaitInSwitchCaseBody( Compil
9595
Assert.AreEqual( 100, result[0] );
9696
}
9797

98-
[TestMethod]
98+
[DataTestMethod]
9999
[DataRow( CompilerType.Fast )]
100100
[DataRow( CompilerType.System )]
101101
[DataRow( CompilerType.Interpret )]
@@ -129,7 +129,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithYieldInSwitchValueAndCaseBody
129129
Assert.AreEqual( 50, result[1] );
130130
}
131131

132-
[TestMethod]
132+
[DataTestMethod]
133133
[DataRow( CompilerType.Fast )]
134134
[DataRow( CompilerType.System )]
135135
[DataRow( CompilerType.Interpret )]
@@ -165,7 +165,7 @@ public void YieldBlock_ShouldYieldSuccessfully_WithNestedSwitchesAndYields( Comp
165165
Assert.AreEqual( 30, result[0] );
166166
}
167167

168-
[TestMethod]
168+
[DataTestMethod]
169169
[DataRow( CompilerType.Fast )]
170170
[DataRow( CompilerType.System )]
171171
[DataRow( CompilerType.Interpret )]

0 commit comments

Comments
 (0)