File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,12 +7,15 @@ namespace OpenApiTests.AttributeTypes;
77
88public sealed class AttributeTypeTests : IClassFixture < OpenApiTestContext < AttributeTypesStartup , AttributeTypesDbContext > >
99{
10+ #pragma warning disable CA1825 // Avoid zero-length array allocations
11+ // Workaround for bug at https://github.com/dotnet/sdk/issues/54275.
1012 public static readonly TheoryData < string > SchemaNames =
1113 [
1214 "attributesInCreateTypeContainerRequest" ,
1315 "attributesInUpdateTypeContainerRequest" ,
1416 "attributesInTypeContainerResponse"
1517 ] ;
18+ #pragma warning restore CA1825 // Avoid zero-length array allocations
1619
1720 private readonly OpenApiTestContext < AttributeTypesStartup , AttributeTypesDbContext > _testContext ;
1821
Original file line number Diff line number Diff line change @@ -7,12 +7,15 @@ namespace OpenApiTests.ModelStateValidation;
77
88public sealed class ModelStateValidationTests : IClassFixture < OpenApiTestContext < OpenApiStartup < ModelStateValidationDbContext > , ModelStateValidationDbContext > >
99{
10+ #pragma warning disable CA1825 // Avoid zero-length array allocations
11+ // Workaround for bug at https://github.com/dotnet/sdk/issues/54275.
1012 public static readonly TheoryData < string > SchemaNames =
1113 [
1214 "attributesInCreateSocialMediaAccountRequest" ,
1315 "attributesInUpdateSocialMediaAccountRequest" ,
1416 "attributesInSocialMediaAccountResponse"
1517 ] ;
18+ #pragma warning restore CA1825 // Avoid zero-length array allocations
1619
1720 private readonly OpenApiTestContext < OpenApiStartup < ModelStateValidationDbContext > , ModelStateValidationDbContext > _testContext ;
1821
You can’t perform that action at this time.
0 commit comments