@@ -18,12 +18,6 @@ namespace Assemblies
18
18
/// </summary>
19
19
public class MockAssembly
20
20
{
21
- /// <summary>
22
- /// Constant definitions used by tests that both reference the
23
- /// mock-assembly and load it in order to verify counts.
24
- /// </summary>
25
- public const string FileName = "mock.nunit.assembly.exe" ;
26
-
27
21
public const int Classes = 9 ;
28
22
public const int NamespaceSuites = 6 ; // assembly, NUnit, Tests, Assemblies, Singletons, TestAssembly
29
23
@@ -65,27 +59,30 @@ public class MockAssembly
65
59
public const int ExplicitFixtures = 1 ;
66
60
public const int SuitesRun = Suites - ExplicitFixtures ;
67
61
68
- public const int PassedButFailedInTearDown = FixtureWithDispose . Tests
69
- + FixtureWithOneTimeTearDown . Tests
70
- + TestSetUpFixture . SetUpFixture . TestsInNamespace ;
71
-
72
62
public const int Passed = MockTestFixture . Passed
73
63
+ Singletons . OneTestCase . Tests
74
64
+ TestAssembly . MockTestFixture . Tests
75
65
+ FixtureWithTestCases . Tests
76
66
+ ParameterizedFixture . Tests
77
67
+ GenericFixtureConstants . Tests
78
- + AccessesCurrentTestContextDuringDiscovery . Tests
79
- + PassedButFailedInTearDown ;
68
+ + AccessesCurrentTestContextDuringDiscovery . Tests ;
69
+
70
+ public const int PassedButFailedInTearDown = FixtureWithDispose . Tests
71
+ + FixtureWithOneTimeTearDown . Tests
72
+ + TestSetUpFixture . SetUpFixture . TestsInNamespace ;
73
+
74
+ public const int Passed_Raw = Passed + PassedButFailedInTearDown ;
80
75
81
- public const int Skipped_Ignored = MockTestFixture . Skipped_Ignored + IgnoredFixture . Tests ;
82
- public const int Skipped_Explicit = MockTestFixture . Skipped_Explicit + ExplicitFixture . Tests ;
83
- public const int Skipped = Skipped_Ignored + Skipped_Explicit ;
76
+ public const int Ignored = MockTestFixture . Ignored + IgnoredFixture . Tests ;
77
+ public const int Explicit = MockTestFixture . Explicit + ExplicitFixture . Tests ;
78
+ public const int Skipped = Ignored + Explicit ;
84
79
85
- public const int Failed_Error = MockTestFixture . Failed_Error ;
86
- public const int Failed_Other = MockTestFixture . Failed_Other ;
87
- public const int Failed_NotRunnable = MockTestFixture . Failed_NotRunnable + BadFixture . Tests ;
88
- public const int Failed = Failed_Error + Failed_Other + Failed_NotRunnable ;
80
+ public const int Failures = MockTestFixture . Failures ;
81
+ public const int Errors_Raw = MockTestFixture . Errors ;
82
+ public const int Errors = MockTestFixture . Errors + PassedButFailedInTearDown ;
83
+ public const int NotRunnable = MockTestFixture . NotRunnable + BadFixture . Tests ;
84
+ public const int Failed = Failures + Errors + NotRunnable ;
85
+ public const int Failed_Raw = Failures + Errors_Raw + NotRunnable ;
89
86
90
87
public const int Warnings = MockTestFixture . Warnings ;
91
88
@@ -99,13 +96,13 @@ public static void DisplayCounts()
99
96
Console . WriteLine ( $ "Test Count: { Tests } ") ;
100
97
Console . WriteLine ( $ " Passed: { Passed } ") ;
101
98
Console . WriteLine ( $ " Failed: { Failed } ") ;
102
- Console . WriteLine ( $ " Failures: { Failed_Other } ") ;
103
- Console . WriteLine ( $ " Errors: { Failed_Error } ") ;
104
- Console . WriteLine ( $ " Invalid: { Failed_NotRunnable } ") ;
99
+ Console . WriteLine ( $ " Failures: { Failures } ") ;
100
+ Console . WriteLine ( $ " Errors: { Errors } ") ;
101
+ Console . WriteLine ( $ " Invalid: { NotRunnable } ") ;
105
102
Console . WriteLine ( $ " Warnings: { Warnings } ") ;
106
103
Console . WriteLine ( $ " Skipped: { Skipped } ") ;
107
- Console . WriteLine ( $ " Explicit: { Skipped_Explicit } ") ;
108
- Console . WriteLine ( $ " Ignored: { Skipped_Ignored } ") ;
104
+ Console . WriteLine ( $ " Explicit: { Explicit } ") ;
105
+ Console . WriteLine ( $ " Ignored: { Ignored } ") ;
109
106
Console . WriteLine ( $ " Inconclusive: { Inconclusive } ") ;
110
107
}
111
108
}
@@ -119,14 +116,14 @@ public class MockTestFixture
119
116
120
117
public const int Passed = 1 ;
121
118
122
- public const int Skipped_Ignored = 1 ;
123
- public const int Skipped_Explicit = 1 ;
124
- public const int Skipped = Skipped_Ignored + Skipped_Explicit ;
119
+ public const int Ignored = 1 ;
120
+ public const int Explicit = 1 ;
121
+ public const int Skipped = Ignored + Explicit ;
125
122
126
- public const int Failed_Other = 1 ;
127
- public const int Failed_Error = 1 ;
128
- public const int Failed_NotRunnable = 2 ;
129
- public const int Failed = Failed_Error + Failed_Other + Failed_NotRunnable ;
123
+ public const int Failures = 1 ;
124
+ public const int Errors = 1 ;
125
+ public const int NotRunnable = 2 ;
126
+ public const int Failed = Errors + Failures + NotRunnable ;
130
127
131
128
public const int Warnings = 1 ;
132
129
0 commit comments