Skip to content

Commit

Permalink
Remove redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-VBFK committed Nov 19, 2022
1 parent dcdf1c1 commit 753d0e8
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Tests/FluentAssertions.Specs/Primitives/TimeOnlyAssertionSpecs.cs
Expand Up @@ -446,21 +446,6 @@ public void When_asserting_subject_datetime_is_not_close_to_an_earlier_datetime_
.WithMessage("Did not expect time to be within 35ms from <12:15:31.000>, but it was <12:15:31.035>.");
}

[Fact]
public void When_asserting_subject_null_time_is_not_close_to_another_it_should_throw()
{
// Arrange
TimeOnly? time = null;
TimeOnly nearbyTime = new TimeOnly(12, 15, 31);

// Act
Action act = () => time.Should().NotBeCloseTo(nearbyTime, 35.Milliseconds());

// Assert
act.Should().Throw<XunitException>()
.WithMessage("Did not expect*, but found <null>.");
}

[Fact]
public void When_asserting_subject_time_is_not_close_to_the_minimum_time_it_should_throw()
{
Expand Down

0 comments on commit 753d0e8

Please sign in to comment.