Skip to content

Commit

Permalink
Removed obsolete When_no_exception_should_be_thrown_for_null_after_wa…
Browse files Browse the repository at this point in the history
…it_time_it_should_fail
  • Loading branch information
lg2de committed Aug 10, 2022
1 parent 4985d48 commit 59398c8
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Tests/FluentAssertions.Specs/Specialized/TaskOfTAssertionSpecs.cs
Expand Up @@ -329,24 +329,6 @@ await act.Should().ThrowAsync<ArgumentOutOfRangeException>()
.WithMessage("* value of pollInterval must be non-negative*");
}

[Fact] // TODO What is the relevant difference to When_subject_is_null_it_should_fail?
public async Task When_no_exception_should_be_thrown_for_null_after_wait_time_it_should_fail()
{
// Arrange
var waitTime = 2.Seconds();
var pollInterval = 10.Milliseconds();

Func<Task<int>> func = null;

// Act
Func<Task> action = () => func.Should()
.NotThrowAfterAsync(waitTime, pollInterval, "we passed valid arguments");

// Assert
await action.Should().ThrowAsync<XunitException>()
.WithMessage("*but found <null>*");
}

[Fact]
public async Task When_exception_is_thrown_before_timeout_it_should_fail()
{
Expand Down

0 comments on commit 59398c8

Please sign in to comment.