Skip to content

Commit

Permalink
[GH-108] - async method support
Browse files Browse the repository at this point in the history
  • Loading branch information
tpodolak committed Apr 22, 2022
1 parent f1e6a63 commit b80295b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Public Sub Test()
[|substitute.Bar()|]
End Function)
NSubstitute.Received.InOrder(Function() [|substitute.Bar()|])
NSubstitute.Received.InOrder(Async Function() Await [|otherSubstitute.Bar()|])
NSubstitute.Received.InOrder(Sub() [|substitute.Bar()|])
NSubstitute.Received.InOrder(Function()
[|substitute.Nested.Bar()|]
Expand Down Expand Up @@ -109,6 +110,10 @@ Public Sub Test()
Await [|otherSubstitute.Bar()|]
Dim y = Await [|otherSubstitute.Bar()|]
End Function)
NSubstitute.Received.InOrder(Async Function()
Await [|otherSubstitute.Bar()|]
Dim y = Await [|otherSubstitute.Bar()|]
End Function)
End Sub
End Class
End Namespace";
Expand Down Expand Up @@ -392,6 +397,9 @@ Public Sub Test()
NSubstitute.Received.InOrder(Async Function()
Dim x = substitute.Bar(Await otherSubstitute.Bar())
End Function)
NSubstitute.Received.InOrder(Async Function()
Dim x = substitute.Bar(Await otherSubstitute.Bar())
End Function)
End Sub
End Class
End Namespace
Expand Down

0 comments on commit b80295b

Please sign in to comment.