Skip to content

Commit 7581f27

Browse files
committed
[Refactor] Set NoWarn values in test project
1 parent d59849b commit 7581f27

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

tests/vies-dotnet-api-test/ViesManagerFixture.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ namespace Padi.Vies.Test;
2020
///
2121
/// </summary>
2222
[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
23+
#pragma warning disable CA1515
2324
public sealed class ViesManagerFixture : IDisposable
25+
#pragma warning restore CA1515
2426
{
2527
public void Dispose()
2628
{

tests/vies-dotnet-api-test/ViesNonEUUnitTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ limitations under the License.
1616

1717
namespace Padi.Vies.Test;
1818

19+
#pragma warning disable CA1515
1920
public sealed class ViesNonEUUnitTests
21+
#pragma warning restore CA1515
2022
{
2123
[Theory]
2224
[InlineData("GB434031494")]

tests/vies-dotnet-api-test/vies-dotnet-api-test.csproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup Label="build">
4-
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
54
<TargetFramework>net9.0</TargetFramework>
65
<NoWarn>
76
CA1016;
7+
CA1515;
8+
CA1859;
89
CA2007;
10+
CA2211;
911
MA0051;
1012
IDE0063;
1113
</NoWarn>
1214
</PropertyGroup>
13-
15+
1416
<ItemGroup>
1517
<PackageReference Include="xunit.v3" />
1618
<PackageReference Include="xunit.runner.visualstudio" />

0 commit comments

Comments
 (0)