Skip to content

Commit

Permalink
Test that the last element is returned after all configured values we…
Browse files Browse the repository at this point in the history
…re fetched.
  • Loading branch information
jbialobr committed Apr 4, 2017
1 parent 50bb2ff commit 1ee2270
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/NSubstitute.Acceptance.Specs/MultipleThreads.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ public void Returns_multiple_values_is_threadsafe()
{
Assert.Contains(result, results);
}

int numberAfterAllReturned = substitute.Number();
Assert.That(numberAfterAllReturned, Is.EqualTo(substResults.LastOrDefault()));
}

public interface IFoo
Expand Down

0 comments on commit 1ee2270

Please sign in to comment.