@@ -130,6 +130,70 @@ public void TestMethodInfoInvokeShouldWaitForAsyncTestMethodsToComplete()
130
130
Assert . AreEqual ( UTF . UnitTestOutcome . Passed , result . Outcome ) ;
131
131
}
132
132
133
+ [ TestMethodV1 ]
134
+ public void TestMethodInfoInvokeAsyncShouldHandleThrowAssertInconclusive ( )
135
+ {
136
+ DummyTestClass . DummyAsyncTestMethodBody = ( ) => Task . Run ( ( ) => { throw new UTF . AssertInconclusiveException ( ) ; } ) ;
137
+ var asyncMethodInfo = typeof ( DummyTestClass ) . GetMethod ( "DummyAsyncTestMethod" ) ;
138
+
139
+ var method = new TestMethodInfo (
140
+ asyncMethodInfo ,
141
+ this . testClassInfo ,
142
+ this . testMethodOptions ) ;
143
+
144
+ var result = method . Invoke ( null ) ;
145
+
146
+ Assert . AreEqual ( UTF . UnitTestOutcome . Inconclusive , result . Outcome ) ;
147
+ }
148
+
149
+ [ TestMethodV1 ]
150
+ public void TestMethodInfoInvokeAsyncShouldHandleAssertInconclusive ( )
151
+ {
152
+ DummyTestClass . DummyAsyncTestMethodBody = ( ) => Task . Run ( ( ) => { UTF . Assert . Inconclusive ( ) ; } ) ;
153
+ var asyncMethodInfo = typeof ( DummyTestClass ) . GetMethod ( "DummyAsyncTestMethod" ) ;
154
+
155
+ var method = new TestMethodInfo (
156
+ asyncMethodInfo ,
157
+ this . testClassInfo ,
158
+ this . testMethodOptions ) ;
159
+
160
+ var result = method . Invoke ( null ) ;
161
+
162
+ Assert . AreEqual ( UTF . UnitTestOutcome . Inconclusive , result . Outcome ) ;
163
+ }
164
+
165
+ [ TestMethodV1 ]
166
+ public void TestMethodInfoInvokeShouldHandleThrowAssertInconclusive ( )
167
+ {
168
+ DummyTestClass . TestMethodBody = ( d ) => { throw new UTF . AssertInconclusiveException ( ) ; } ;
169
+ var dummyMethodInfo = typeof ( DummyTestClass ) . GetMethod ( "DummyTestMethod" ) ;
170
+
171
+ var method = new TestMethodInfo (
172
+ dummyMethodInfo ,
173
+ this . testClassInfo ,
174
+ this . testMethodOptions ) ;
175
+
176
+ var result = method . Invoke ( null ) ;
177
+
178
+ Assert . AreEqual ( UTF . UnitTestOutcome . Inconclusive , result . Outcome ) ;
179
+ }
180
+
181
+ [ TestMethodV1 ]
182
+ public void TestMethodInfoInvokeShouldHandleAssertInconclusive ( )
183
+ {
184
+ DummyTestClass . TestMethodBody = ( d ) => { UTF . Assert . Inconclusive ( ) ; } ;
185
+ var dummyMethodInfo = typeof ( DummyTestClass ) . GetMethod ( "DummyTestMethod" ) ;
186
+
187
+ var method = new TestMethodInfo (
188
+ dummyMethodInfo ,
189
+ this . testClassInfo ,
190
+ this . testMethodOptions ) ;
191
+
192
+ var result = method . Invoke ( null ) ;
193
+
194
+ Assert . AreEqual ( UTF . UnitTestOutcome . Inconclusive , result . Outcome ) ;
195
+ }
196
+
133
197
[ TestMethodV1 ]
134
198
public void TestMethodInfoInvokeShouldListenForDebugAndTraceLogsWhenEnabled ( )
135
199
{
0 commit comments