Skip to content

Commit 6d21b49

Browse files
committed
Fix tests
1 parent fa86d4f commit 6d21b49

3 files changed

+6
-3
lines changed

test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.SerializeReferencedExampleAsV3JsonWithoutReferenceWorks_produceTerseOutput=False.verified.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
}
2222
]
2323
}
24-
]
24+
],
25+
"aDate": "2022-12-12"
2526
}
2627
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"value":{"versions":[{"status":"Status1","id":"v1","links":[{"href":"http://example.com/1","rel":"sampleRel1"}]},{"status":"Status2","id":"v2","links":[{"href":"http://example.com/2","rel":"sampleRel2"}]}]}}
1+
{"value":{"versions":[{"status":"Status1","id":"v1","links":[{"href":"http://example.com/1","rel":"sampleRel1"}]},{"status":"Status2","id":"v2","links":[{"href":"http://example.com/2","rel":"sampleRel2"}]}],"aDate":"2022-12-12"}}

test/Microsoft.OpenApi.Tests/Models/OpenApiExampleTests.cs

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

4+
using System;
45
using System.Globalization;
56
using System.IO;
67
using System.Text;
@@ -95,7 +96,8 @@ public class OpenApiExampleTests
9596
}
9697
}
9798
}
98-
}
99+
},
100+
["aDate"] = new OpenApiDate(DateTime.Parse("12/12/2022 00:00:00"))
99101
}
100102
};
101103

0 commit comments

Comments
 (0)