44using System . Collections . Generic ;
55using System . Linq ;
66using FluentAssertions ;
7- using Microsoft . OpenApi . Any ;
87using Microsoft . OpenApi . Models ;
98using Microsoft . OpenApi . Services ;
109using Xunit ;
@@ -15,43 +14,6 @@ namespace Microsoft.OpenApi.Tests.Services
1514 [ Collection ( "DefaultSettings" ) ]
1615 public class OpenApiComparerTests
1716 {
18- public static OpenApiExample AdvancedExample = new OpenApiExample
19- {
20- Value = new OpenApiObject
21- {
22- [ "versions" ] = new OpenApiArray
23- {
24- new OpenApiObject
25- {
26- [ "status" ] = new OpenApiString ( "Status1" ) ,
27- [ "id" ] = new OpenApiString ( "v1" ) ,
28- [ "links" ] = new OpenApiArray
29- {
30- new OpenApiObject
31- {
32- [ "href" ] = new OpenApiString ( "http://example.com/1" ) ,
33- [ "rel" ] = new OpenApiString ( "sampleRel1" )
34- }
35- }
36- } ,
37-
38- new OpenApiObject
39- {
40- [ "status" ] = new OpenApiString ( "Status2" ) ,
41- [ "id" ] = new OpenApiString ( "v2" ) ,
42- [ "links" ] = new OpenApiArray
43- {
44- new OpenApiObject
45- {
46- [ "href" ] = new OpenApiString ( "http://example.com/2" ) ,
47- [ "rel" ] = new OpenApiString ( "sampleRel2" )
48- }
49- }
50- }
51- }
52- }
53- } ;
54-
5517 private readonly ITestOutputHelper _output ;
5618
5719 public OpenApiComparerTests ( ITestOutputHelper output )
@@ -71,8 +33,6 @@ public void OpenApiComparerShouldSucceed(
7133 {
7234 _output . WriteLine ( testCaseName ) ;
7335
74- new OpenApiExampleComparer ( ) . Compare ( AdvancedExample , AdvancedExample ,
75- new ComparisonContext ( new OpenApiComparerFactory ( ) , new OpenApiDocument ( ) , new OpenApiDocument ( ) ) ) ;
7636 var differences = OpenApiComparer . Compare ( source , target ) . ToList ( ) ;
7737 differences . Count ( ) . Should ( ) . Be ( expectedDifferences . Count ) ;
7838
0 commit comments