Skip to content

Commit

Permalink
fixed NextTimeSpanTests
Browse files Browse the repository at this point in the history
  • Loading branch information
georgimanov committed Oct 29, 2016
1 parent dbe2897 commit 5763334
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
public class NextTimeSpanTests
{
[Fact]
public void NextTimeSpan_ShouldReturnTimeSpan()
public void NextTimeSpan_ShouldThow_ArgumentNullException()
{
var random = new Random();
var result = random.NextTimeSpan();
Random random = null;

Assert.IsType<TimeSpan>(result);
Assert.Throws<ArgumentNullException>(() => random.NextTimeSpan());
}
}
}

0 comments on commit 5763334

Please # to comment.