1+ using Shouldly ;
2+ using TUnit . Engine . Tests . Enums ;
3+
4+ namespace TUnit . Engine . Tests . Bugs ;
5+
6+ public class Bug2481 ( TestMode testMode ) : InvokableTestBase ( testMode )
7+ {
8+ [ Test ]
9+ public async Task Test ( )
10+ {
11+ await RunTestsWithFilter (
12+ "/*/TUnit.TestProject.Bugs._2481/*/*[Group=Bugs]" ,
13+ [
14+ result => result . ResultSummary . Outcome . ShouldBe ( "Completed" ) ,
15+ result => result . ResultSummary . Counters . Total . ShouldBe ( 1 ) ,
16+ result => result . ResultSummary . Counters . Passed . ShouldBe ( 1 ) ,
17+ result => result . ResultSummary . Counters . Failed . ShouldBe ( 0 ) ,
18+ result => result . ResultSummary . Counters . NotExecuted . ShouldBe ( 0 )
19+ ] ) ;
20+ }
21+
22+ [ Test ]
23+ public async Task Test2 ( )
24+ {
25+ await RunTestsWithFilter (
26+ "/*/TUnit.TestProject.Bugs._2481/*/*[Group=2481]" ,
27+ [
28+ result => result . ResultSummary . Outcome . ShouldBe ( "Completed" ) ,
29+ result => result . ResultSummary . Counters . Total . ShouldBe ( 1 ) ,
30+ result => result . ResultSummary . Counters . Passed . ShouldBe ( 1 ) ,
31+ result => result . ResultSummary . Counters . Failed . ShouldBe ( 0 ) ,
32+ result => result . ResultSummary . Counters . NotExecuted . ShouldBe ( 0 )
33+ ] ) ;
34+ }
35+
36+ [ Test ]
37+ public async Task Test3 ( )
38+ {
39+ await RunTestsWithFilter (
40+ "/*/TUnit.TestProject.Bugs._2481/*/*[Group=TUnit]" ,
41+ [
42+ result => result . ResultSummary . Outcome . ShouldBe ( "Completed" ) ,
43+ result => result . ResultSummary . Counters . Total . ShouldBe ( 1 ) ,
44+ result => result . ResultSummary . Counters . Passed . ShouldBe ( 1 ) ,
45+ result => result . ResultSummary . Counters . Failed . ShouldBe ( 0 ) ,
46+ result => result . ResultSummary . Counters . NotExecuted . ShouldBe ( 0 )
47+ ] ) ;
48+ }
49+ }
0 commit comments