diff --git a/Tests/FluentAssertions.Specs/Exceptions/AsyncFunctionExceptionAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Exceptions/AsyncFunctionExceptionAssertionSpecs.cs index 0b686b1da3..1f47b86d49 100644 --- a/Tests/FluentAssertions.Specs/Exceptions/AsyncFunctionExceptionAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Exceptions/AsyncFunctionExceptionAssertionSpecs.cs @@ -85,7 +85,9 @@ public async Task When_async_method_throws_an_empty_AggregateException_it_should } [Collection("UIFacts")] +#pragma warning disable SA1601 // Partial elements should be documented public partial class UIFacts +#pragma warning restore SA1601 // Partial elements should be documented { [UIFact] public async Task When_async_method_throws_an_empty_AggregateException_on_UI_thread_it_should_fail() @@ -111,7 +113,9 @@ public async Task When_async_method_throws_a_nested_AggregateException_it_should await act.Should().ThrowAsync().WithMessage("That was wrong."); } +#pragma warning disable SA1601 // Partial elements should be documented public partial class UIFacts +#pragma warning restore SA1601 // Partial elements should be documented { [UIFact] public async Task When_async_method_throws_a_nested_AggregateException_on_UI_thread_it_should_provide_the_message() @@ -506,7 +510,9 @@ public async Task When_async_method_does_not_throw_async_exception_and_that_was_ await action.Should().NotThrowAsync(); } +#pragma warning disable SA1601 // Partial elements should be documented public partial class UIFacts +#pragma warning restore SA1601 // Partial elements should be documented { [UIFact] public async Task When_async_method_does_not_throw_async_exception_on_UI_thread_and_that_was_expected_it_should_succeed() @@ -615,7 +621,9 @@ public async Task When_subject_throws_expected_async_exact_exception_it_should_s await action.Should().ThrowExactlyAsync("because {0} should do that", "IFoo.Do"); } +#pragma warning disable SA1601 // Partial elements should be documented public partial class UIFacts +#pragma warning restore SA1601 // Partial elements should be documented { [UIFact] public async Task When_subject_throws_on_UI_thread_expected_async_exact_exception_it_should_succeed() @@ -1218,7 +1226,9 @@ await action.Should().ThrowAsync() .WithMessage("Did not expect any exceptions after 2s because we passed valid arguments*"); } +#pragma warning disable SA1601 // Partial elements should be documented public partial class UIFacts +#pragma warning restore SA1601 // Partial elements should be documented { [UIFact] public async Task When_no_exception_should_be_thrown_on_UI_thread_for_async_func_after_wait_time_but_it_was_it_should_throw() @@ -1279,7 +1289,9 @@ public async Task When_no_exception_should_be_thrown_for_async_func_after_wait_t await act.Should().NotThrowAsync(); } +#pragma warning disable SA1601 // Partial elements should be documented public partial class UIFacts +#pragma warning restore SA1601 // Partial elements should be documented { [UIFact] public async Task When_no_exception_should_be_thrown_on_UI_thread_for_async_func_after_wait_time_and_none_was_it_should_not_throw() diff --git a/Tests/FluentAssertions.Specs/Execution/CallerIdentifierSpecs.cs b/Tests/FluentAssertions.Specs/Execution/CallerIdentifierSpecs.cs index b463e4c6b9..24b68b2bc8 100644 --- a/Tests/FluentAssertions.Specs/Execution/CallerIdentifierSpecs.cs +++ b/Tests/FluentAssertions.Specs/Execution/CallerIdentifierSpecs.cs @@ -456,7 +456,9 @@ public void When_the_method_has_Should_prefix_it_should_read_whole_method() } [Collection("UIFacts")] +#pragma warning disable SA1601 // Partial elements should be documented public partial class UIFacts +#pragma warning restore SA1601 // Partial elements should be documented { [UIFact] public async Task Caller_identification_should_also_work_for_statements_following_async_code() diff --git a/Tests/FluentAssertions.Specs/Specialized/TaskAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Specialized/TaskAssertionSpecs.cs index defe801a43..dc934d2cb6 100644 --- a/Tests/FluentAssertions.Specs/Specialized/TaskAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Specialized/TaskAssertionSpecs.cs @@ -80,7 +80,9 @@ public async Task Sync_work_in_async_method_is_taken_into_account() } [Collection("UIFacts")] +#pragma warning disable SA1601 // Partial elements should be documented public partial class UIFacts +#pragma warning restore SA1601 // Partial elements should be documented { [UIFact] public async Task When_task_completes_on_UI_thread_fast_async_it_should_succeed() @@ -114,7 +116,9 @@ public async Task When_task_completes_slow_async_it_should_fail() await action.Should().ThrowAsync(); } +#pragma warning disable SA1601 // Partial elements should be documented public partial class UIFacts +#pragma warning restore SA1601 // Partial elements should be documented { [UIFact] public async Task When_task_completes_on_UI_thread_slow_async_it_should_fail() diff --git a/Tests/FluentAssertions.Specs/Specialized/TaskOfTAssertionSpecs.cs b/Tests/FluentAssertions.Specs/Specialized/TaskOfTAssertionSpecs.cs index dca1d40afb..be2c104c66 100644 --- a/Tests/FluentAssertions.Specs/Specialized/TaskOfTAssertionSpecs.cs +++ b/Tests/FluentAssertions.Specs/Specialized/TaskOfTAssertionSpecs.cs @@ -190,7 +190,9 @@ public async Task When_task_does_not_throw_async_it_should_succeed() } [Collection("UIFacts")] +#pragma warning disable SA1601 // Partial elements should be documented public partial class UIFacts +#pragma warning restore SA1601 // Partial elements should be documented { [UIFact] public async Task When_task_does_not_throw_async_on_UI_thread_it_should_succeed() @@ -234,7 +236,9 @@ public async Task When_task_throws_async_it_should_fail() await action.Should().ThrowAsync(); } +#pragma warning disable SA1601 // Partial elements should be documented public partial class UIFacts +#pragma warning restore SA1601 // Partial elements should be documented { [UIFact] public async Task When_task_throws_async_on_UI_thread_it_should_fail() @@ -360,7 +364,9 @@ await action.Should().ThrowAsync() .WithMessage("Did not expect any exceptions after 2s because we passed valid arguments*"); } +#pragma warning disable SA1601 // Partial elements should be documented public partial class UIFacts +#pragma warning restore SA1601 // Partial elements should be documented { [UIFact] public async Task When_no_exception_should_be_thrown_async_on_UI_thread_after_wait_time_but_it_was_it_should_throw() @@ -427,7 +433,9 @@ public async Task When_no_exception_should_be_thrown_async_after_wait_time_and_n await act.Should().NotThrowAsync(); } +#pragma warning disable SA1601 // Partial elements should be documented public partial class UIFacts +#pragma warning restore SA1601 // Partial elements should be documented { [UIFact] public async Task When_no_exception_should_be_thrown_async_on_UI_thread_after_wait_time_and_none_was_it_should_not_throw()