From 4d41c47866a353388a990108c030d990f46ef4ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Gr=C3=BCtzmacher?= Date: Mon, 8 Aug 2022 22:48:10 +0200 Subject: [PATCH] Removed obsolete When_no_exception_should_be_thrown_for_null_after_wait_time_it_should_fail --- .../Specialized/TaskOfTAssertionSpecs.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Tests/FluentAssertions.Specs/Specialized/TaskOfTAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Specialized/TaskOfTAssertionSpecs.cs index bd2154c962..6ca939ceac 100644 --- a/Tests/FluentAssertions.Specs/Specialized/TaskOfTAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Specialized/TaskOfTAssertionSpecs.cs @@ -308,24 +308,6 @@ await act.Should().ThrowAsync() .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> func = null; - - // Act - Func action = () => func.Should() - .NotThrowAfterAsync(waitTime, pollInterval, "we passed valid arguments"); - - // Assert - await action.Should().ThrowAsync() - .WithMessage("*but found *"); - } - [Fact] public async Task When_exception_is_thrown_before_timeout_it_should_fail() {