File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
src/DotNext.Tests/Threading/Tasks Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -88,20 +88,4 @@ public static async Task SuspendExceptionParametrized()
8888 await ValueTask . FromException ( new Exception ( ) ) . SuspendException ( 42 , ( _ , i ) => i is 42 ) . ConfigureAwait ( true ) ;
8989 await ThrowsAsync < Exception > ( async ( ) => await Task . FromException ( new Exception ( ) ) . SuspendException ( 43 , ( _ , i ) => i is 42 ) . ConfigureAwait ( true ) ) ;
9090 }
91-
92- [ Fact ]
93- public static async Task SuspendException2 ( )
94- {
95- var t = Task . FromException ( new Exception ( ) ) ;
96- var result = await t . AsDynamic ( ) . ConfigureAwait ( ConfigureAwaitOptions . SuppressThrowing | ConfigureAwaitOptions . ContinueOnCapturedContext ) ;
97- Same ( result , Missing . Value ) ;
98- }
99-
100- [ Fact ]
101- public static async Task SuspendExceptionParametrized ( )
102- {
103- await Task . FromException ( new Exception ( ) ) . SuspendException ( 42 , ( _ , i ) => i is 42 ) ;
104- await ValueTask . FromException ( new Exception ( ) ) . SuspendException ( 42 , ( _ , i ) => i is 42 ) ;
105- await ThrowsAsync < Exception > ( async ( ) => await Task . FromException ( new Exception ( ) ) . SuspendException ( 43 , ( _ , i ) => i is 42 ) ) ;
106- }
10791}
You can’t perform that action at this time.
0 commit comments