@@ -353,7 +353,7 @@ public async Task CanContinueConversationOverWebSocketAsync()
353
353
var nullUrlProcessRequest = adapter . ProcessAsync ( nullUrlHttpRequest . Object , nullUrlHttpResponse . Object , bot . Object , CancellationToken . None ) ;
354
354
var processRequest = adapter . ProcessAsync ( httpRequest . Object , httpResponse . Object , bot . Object , CancellationToken . None ) ;
355
355
356
- var validContinuation = adapter . ContinueConversationAsync (
356
+ await adapter . ContinueConversationAsync (
357
357
authResult . ClaimsIdentity ,
358
358
validActivity ,
359
359
( turn , cancellationToken ) =>
@@ -368,8 +368,8 @@ public async Task CanContinueConversationOverWebSocketAsync()
368
368
} ,
369
369
CancellationToken . None ) ;
370
370
371
- var invalidContinuation = adapter . ContinueConversationAsync (
372
- authResult . ClaimsIdentity , invalidActivity , ( turn , cancellationToken ) => Task . CompletedTask , CancellationToken . None ) ;
371
+ await Assert . ThrowsAsync < ApplicationException > ( ( ) => adapter . ContinueConversationAsync (
372
+ authResult . ClaimsIdentity , invalidActivity , ( turn , cancellationToken ) => Task . CompletedTask , CancellationToken . None ) ) ;
373
373
374
374
continueConversationWaiter . Set ( ) ;
375
375
await nullUrlProcessRequest ;
@@ -378,11 +378,6 @@ public async Task CanContinueConversationOverWebSocketAsync()
378
378
// Assert
379
379
Assert . True ( processRequest . IsCompletedSuccessfully ) ;
380
380
Assert . True ( verifiedValidContinuation ) ;
381
- Assert . True ( validContinuation . IsCompletedSuccessfully ) ;
382
- Assert . Null ( validContinuation . Exception ) ;
383
- Assert . True ( invalidContinuation . IsFaulted ) ;
384
- Assert . NotEmpty ( invalidContinuation . Exception . InnerExceptions ) ;
385
- Assert . True ( invalidContinuation . Exception . InnerExceptions [ 0 ] is ApplicationException ) ;
386
381
}
387
382
388
383
[ Fact ]
0 commit comments