We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dfc9b8 commit 21253f6Copy full SHA for 21253f6
test/Microsoft.OpenApi.Readers.Tests/V3Tests/OpenApiDocumentTests.cs
@@ -1390,12 +1390,8 @@ public async Task ParseDocumentWithEmptyPathsSucceeds()
1390
public async Task ParseDocumentWithExampleReferencesPasses()
1391
{
1392
// Act & Assert: Ensure no NullReferenceException is thrown
1393
- Func<Task> act = async () =>
1394
- {
1395
- await OpenApiDocument.LoadAsync(System.IO.Path.Combine(SampleFolderPath, "docWithExampleReferences.yaml"));
1396
- };
1397
-
1398
- await act.Should().NotThrowAsync<NullReferenceException>();
+ var result = await OpenApiDocument.LoadAsync(Path.Combine(SampleFolderPath, "docWithExampleReferences.yaml"));
+ Assert.Empty(result.Diagnostic.Errors);
1399
}
1400
1401
0 commit comments