Skip to content

Commit a8153e9

Browse files
committed
chore: additional FA removal batch
Signed-off-by: Vincent Biret <[email protected]>
1 parent 18ec0d0 commit a8153e9

10 files changed

+12
-22
lines changed

test/Microsoft.OpenApi.Tests/Expressions/RuntimeExpressionTests.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Collections.Generic;
66
using System.Linq;
7-
using FluentAssertions;
87
using Microsoft.OpenApi.Exceptions;
98
using Microsoft.OpenApi.Expressions;
109
using Microsoft.OpenApi.Properties;
@@ -184,11 +183,11 @@ public void CompositeRuntimeExpressionContainsMultipleExpressions()
184183
var compositeExpression = runtimeExpression as CompositeExpression;
185184
Assert.Equal(2, compositeExpression.ContainedExpressions.Count);
186185

187-
compositeExpression.ContainedExpressions.Should().BeEquivalentTo(new List<RuntimeExpression>
186+
Assert.Equivalent(new List<RuntimeExpression>
188187
{
189188
new UrlExpression(),
190189
new RequestExpression(new HeaderExpression("foo"))
191-
});
190+
}, compositeExpression.ContainedExpressions);
192191
}
193192

194193
[Fact]
@@ -228,11 +227,11 @@ public void CompositeRuntimeExpressionWithMultipleRuntimeExpressionsAndFakeBrace
228227
Assert.Equal(expression, response.Expression);
229228

230229
var compositeExpression = runtimeExpression as CompositeExpression;
231-
compositeExpression.ContainedExpressions.Should().BeEquivalentTo(new List<RuntimeExpression>
230+
Assert.Equivalent(new List<RuntimeExpression>
232231
{
233232
new UrlExpression(),
234233
new RequestExpression(new HeaderExpression("foo"))
235-
});
234+
}, compositeExpression.ContainedExpressions);
236235
}
237236

238237
[Theory]

test/Microsoft.OpenApi.Tests/Services/OpenApiValidatorTests.cs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Collections.Generic;
66
using System.Text.Json;
77
using System.Text.Json.Nodes;
8-
using FluentAssertions;
98
using Microsoft.OpenApi.Any;
109
using Microsoft.OpenApi.Interfaces;
1110
using Microsoft.OpenApi.Models;
@@ -54,12 +53,12 @@ public void ResponseMustHaveADescription()
5453
var walker = new OpenApiWalker(validator);
5554
walker.Walk(openApiDocument);
5655

57-
validator.Errors.Should().BeEquivalentTo(
56+
Assert.Equivalent(
5857
new List<OpenApiError>
5958
{
6059
new OpenApiValidatorError(nameof(OpenApiResponseRules.ResponseRequiredFields),"#/paths/~1test/get/responses/200/description",
61-
String.Format(SRResource.Validation_FieldIsRequired, "description", "response"))
62-
});
60+
string.Format(SRResource.Validation_FieldIsRequired, "description", "response"))
61+
}, validator.Errors);
6362
}
6463

6564
[Fact]
@@ -88,12 +87,12 @@ public void ServersShouldBeReferencedByIndex()
8887
var walker = new OpenApiWalker(validator);
8988
walker.Walk(openApiDocument);
9089

91-
validator.Errors.Should().BeEquivalentTo(
90+
Assert.Equivalent(
9291
new List<OpenApiError>
9392
{
9493
new OpenApiValidatorError(nameof(OpenApiServerRules.ServerRequiredFields), "#/servers/1/url",
95-
String.Format(SRResource.Validation_FieldIsRequired, "url", "server"))
96-
});
94+
string.Format(SRResource.Validation_FieldIsRequired, "url", "server"))
95+
}, validator.Errors);
9796
}
9897

9998
[Fact]
@@ -135,11 +134,11 @@ public void ValidateCustomExtension()
135134
var walker = new OpenApiWalker(validator);
136135
walker.Walk(openApiDocument);
137136

138-
validator.Errors.Should().BeEquivalentTo(
137+
Assert.Equivalent(
139138
new List<OpenApiError>
140139
{
141140
new OpenApiValidatorError("FooExtensionRule", "#/info/x-foo", "Don't say hey")
142-
});
141+
}, validator.Errors);
143142
}
144143

145144
[Fact]

test/Microsoft.OpenApi.Tests/Validations/OpenApiComponentsValidationTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

4-
using System;
54
using System.Collections.Generic;
65
using System.Linq;
76
using Microsoft.OpenApi.Extensions;

test/Microsoft.OpenApi.Tests/Validations/OpenApiContactValidationTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

4-
using System;
54
using System.Linq;
65
using Microsoft.OpenApi.Extensions;
76
using Microsoft.OpenApi.Models;

test/Microsoft.OpenApi.Tests/Validations/OpenApiExternalDocsValidationTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

4-
using System;
54
using System.Linq;
65
using Microsoft.OpenApi.Extensions;
76
using Microsoft.OpenApi.Models;

test/Microsoft.OpenApi.Tests/Validations/OpenApiInfoValidationTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

4-
using System;
54
using System.Linq;
65
using Microsoft.OpenApi.Extensions;
76
using Microsoft.OpenApi.Models;

test/Microsoft.OpenApi.Tests/Validations/OpenApiLicenseValidationTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

4-
using System;
54
using System.Collections.Generic;
65
using System.Linq;
76
using Microsoft.OpenApi.Models;

test/Microsoft.OpenApi.Tests/Validations/OpenApiResponseValidationTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

4-
using System;
54
using System.Collections.Generic;
65
using System.Linq;
76
using Microsoft.OpenApi.Models;

test/Microsoft.OpenApi.Tests/Validations/OpenApiServerValidationTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

4-
using System;
54
using System.Collections.Generic;
65
using System.Linq;
76
using Microsoft.OpenApi.Models;

test/Microsoft.OpenApi.Tests/Validations/OpenApiTagValidationTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

4-
using System;
54
using System.Collections.Generic;
65
using System.Linq;
76
using Microsoft.OpenApi.Any;

0 commit comments

Comments
 (0)