diff --git a/test/Polly.Specs/Polly.Specs.csproj b/test/Polly.Specs/Polly.Specs.csproj index 9296d061242..5ed720b5290 100644 --- a/test/Polly.Specs/Polly.Specs.csproj +++ b/test/Polly.Specs/Polly.Specs.csproj @@ -9,7 +9,7 @@ [Polly]* true $(NoWarn);S103;S104;IDE0011;SA1600;SA1204;CA2008;CA2201; - $(NoWarn);S3878;CA1030;S3717;S1402;SA1649;SA1402;CA1031 + $(NoWarn);S3878;CA1030;S1402;SA1649;SA1402;CA1031 $(NoWarn);S2184; diff --git a/test/Polly.Specs/Timeout/TimeoutAsyncSpecs.cs b/test/Polly.Specs/Timeout/TimeoutAsyncSpecs.cs index a253de538b0..5851f421d3e 100644 --- a/test/Polly.Specs/Timeout/TimeoutAsyncSpecs.cs +++ b/test/Polly.Specs/Timeout/TimeoutAsyncSpecs.cs @@ -247,7 +247,7 @@ public async Task Should_rethrow_exception_from_inside_delegate__pessimistic() { var policy = Policy.TimeoutAsync(TimeSpan.FromSeconds(10), TimeoutStrategy.Pessimistic); - await policy.Awaiting(p => p.ExecuteAsync(() => throw new NotImplementedException())).Should().ThrowAsync(); + await policy.Awaiting(p => p.ExecuteAsync(() => throw new NotSupportedException())).Should().ThrowAsync(); } [Fact] @@ -340,7 +340,7 @@ public async Task Should_rethrow_exception_from_inside_delegate__optimistic() { var policy = Policy.TimeoutAsync(TimeSpan.FromSeconds(10), TimeoutStrategy.Optimistic); - await policy.Awaiting(p => p.ExecuteAsync(() => throw new NotImplementedException())).Should().ThrowAsync(); + await policy.Awaiting(p => p.ExecuteAsync(() => throw new NotSupportedException())).Should().ThrowAsync(); } #endregion diff --git a/test/Polly.Specs/Timeout/TimeoutSpecs.cs b/test/Polly.Specs/Timeout/TimeoutSpecs.cs index 5dd8401cd4c..d7e1ea34481 100644 --- a/test/Polly.Specs/Timeout/TimeoutSpecs.cs +++ b/test/Polly.Specs/Timeout/TimeoutSpecs.cs @@ -259,7 +259,7 @@ public void Should_rethrow_exception_from_inside_delegate__pessimistic() { var policy = Policy.Timeout(TimeSpan.FromSeconds(10), TimeoutStrategy.Pessimistic); - policy.Invoking(p => p.Execute(() => throw new NotImplementedException())).Should().Throw(); + policy.Invoking(p => p.Execute(() => throw new NotSupportedException())).Should().Throw(); } [Fact] @@ -401,7 +401,7 @@ public void Should_rethrow_exception_from_inside_delegate__optimistic() { var policy = Policy.Timeout(TimeSpan.FromSeconds(10), TimeoutStrategy.Optimistic); - policy.Invoking(p => p.Execute(() => throw new NotImplementedException())).Should().Throw(); + policy.Invoking(p => p.Execute(() => throw new NotSupportedException())).Should().Throw(); } diff --git a/test/Polly.Specs/Timeout/TimeoutTResultAsyncSpecs.cs b/test/Polly.Specs/Timeout/TimeoutTResultAsyncSpecs.cs index 7a954e027fd..e3380f1059e 100644 --- a/test/Polly.Specs/Timeout/TimeoutTResultAsyncSpecs.cs +++ b/test/Polly.Specs/Timeout/TimeoutTResultAsyncSpecs.cs @@ -242,7 +242,7 @@ public async Task Should_rethrow_exception_from_inside_delegate__pessimistic() { var policy = Policy.TimeoutAsync(TimeSpan.FromSeconds(10), TimeoutStrategy.Pessimistic); - await policy.Awaiting(p => p.ExecuteAsync(() => throw new NotImplementedException())).Should().ThrowAsync(); + await policy.Awaiting(p => p.ExecuteAsync(() => throw new NotSupportedException())).Should().ThrowAsync(); } #endregion @@ -304,7 +304,7 @@ public async Task Should_rethrow_exception_from_inside_delegate__optimistic() { var policy = Policy.TimeoutAsync(TimeSpan.FromSeconds(10), TimeoutStrategy.Optimistic); - await policy.Awaiting(p => p.ExecuteAsync(() => throw new NotImplementedException())).Should().ThrowAsync(); + await policy.Awaiting(p => p.ExecuteAsync(() => throw new NotSupportedException())).Should().ThrowAsync(); } #endregion diff --git a/test/Polly.Specs/Timeout/TimeoutTResultSpecs.cs b/test/Polly.Specs/Timeout/TimeoutTResultSpecs.cs index c2bff97c403..202ed090380 100644 --- a/test/Polly.Specs/Timeout/TimeoutTResultSpecs.cs +++ b/test/Polly.Specs/Timeout/TimeoutTResultSpecs.cs @@ -250,7 +250,7 @@ public void Should_rethrow_exception_from_inside_delegate__pessimistic() { var policy = Policy.Timeout(TimeSpan.FromSeconds(10), TimeoutStrategy.Pessimistic); - policy.Invoking(p => p.Execute(() => throw new NotImplementedException())).Should().Throw(); + policy.Invoking(p => p.Execute(() => throw new NotSupportedException())).Should().Throw(); } [Fact] @@ -402,7 +402,7 @@ public void Should_rethrow_exception_from_inside_delegate__optimistic() { var policy = Policy.Timeout(TimeSpan.FromSeconds(10), TimeoutStrategy.Optimistic); - policy.Invoking(p => p.Execute(() => throw new NotImplementedException())).Should().Throw(); + policy.Invoking(p => p.Execute(() => throw new NotSupportedException())).Should().Throw(); } #endregion