Skip to content

Commit

Permalink
Fix DateTimeOffsetRangeAssertions.Equals test
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-VBFK committed Apr 14, 2022
1 parent 70d7ca3 commit a094862
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2489,10 +2489,11 @@ public void Calling_equals_on_a_date_time_offset_throws_an_exception()
public void Calling_equals_on_a_date_time_offset_range_throws_an_exception()
{
// Arrange
var subject = 1.January(0001).At(0, 0, 45).WithOffset(0.Hours());
var expectation = 1.January(0001).At(0, 0, 40).WithOffset(0.Hours());
var subject = 1.January(0001).At(0, 0, 30).WithOffset(0.Hours());

// Act
Action action = () => subject.Should().BeMoreThan(10.Seconds()).Equals(new object());
Action action = () => subject.Should().BeMoreThan(5.Seconds()).Equals(expectation);

// Assert
action.Should().Throw<NotSupportedException>()
Expand Down

0 comments on commit a094862

Please sign in to comment.