Skip to content

Commit

Permalink
Disable compiler warning SA1601
Browse files Browse the repository at this point in the history
  • Loading branch information
ITaluone committed Apr 25, 2022
1 parent bb23570 commit 3943125
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
Expand Up @@ -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()
Expand All @@ -111,7 +113,9 @@ public async Task When_async_method_throws_a_nested_AggregateException_it_should
await act.Should().ThrowAsync<ArgumentException>().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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -615,7 +621,9 @@ public async Task When_subject_throws_expected_async_exact_exception_it_should_s
await action.Should().ThrowExactlyAsync<ArgumentException>("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()
Expand Down Expand Up @@ -1218,7 +1226,9 @@ await action.Should().ThrowAsync<XunitException>()
.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()
Expand Down Expand Up @@ -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()
Expand Down
Expand Up @@ -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()
Expand Down
Expand Up @@ -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()
Expand Down Expand Up @@ -114,7 +116,9 @@ public async Task When_task_completes_slow_async_it_should_fail()
await action.Should().ThrowAsync<XunitException>();
}

#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()
Expand Down
Expand Up @@ -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()
Expand Down Expand Up @@ -234,7 +236,9 @@ public async Task When_task_throws_async_it_should_fail()
await action.Should().ThrowAsync<XunitException>();
}

#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()
Expand Down Expand Up @@ -360,7 +364,9 @@ await action.Should().ThrowAsync<XunitException>()
.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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 3943125

Please sign in to comment.