File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -805,7 +805,7 @@ var result = await Verify(
805805 });
806806Assert .Contains (" Value To Check" , result .Text );
807807```
808- <sup ><a href =' /src/Verify.Tests/Tests.cs#L423-L432 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-VerifyResult ' title =' Start of snippet ' >anchor</a ></sup >
808+ <sup ><a href =' /src/Verify.Tests/Tests.cs#L424-L433 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-VerifyResult ' title =' Start of snippet ' >anchor</a ></sup >
809809<!-- endSnippet -->
810810
811811If using ` Verifier.Throws ` , the resulting ` Exception ` will also be accessible
Original file line number Diff line number Diff line change @@ -376,12 +376,13 @@ public Task StringExtension() =>
376376 [ Fact ]
377377 public Task FuncOfTaskResult ( )
378378 {
379- var target = async ( ) =>
379+ static async Task < string > Target ( )
380380 {
381381 await Task . Delay ( 1 ) ;
382382 return "value" ;
383- } ;
384- return Verify ( target ) ;
383+ }
384+
385+ return Verify ( Target ) ;
385386 }
386387
387388 [ Fact ]
@@ -525,12 +526,14 @@ public void Dispose() =>
525526 public async Task FuncOfTaskResultDisposable ( )
526527 {
527528 var disposableTarget = new DisposableTarget ( ) ;
528- var target = async ( ) =>
529+
530+ async Task < DisposableTarget > Target ( )
529531 {
530532 await Task . Delay ( 1 ) ;
531533 return disposableTarget ;
532- } ;
533- await Verify ( target ) ;
534+ }
535+
536+ await Verify ( Target ) ;
534537 Assert . True ( disposableTarget . Disposed ) ;
535538 }
536539
You can’t perform that action at this time.
0 commit comments