Skip to content

Commit

Permalink
chore: reduce fluent assertion usage
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <[email protected]>
  • Loading branch information
baywet committed Jan 28, 2025
1 parent 4dfc9b8 commit 21253f6
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1390,12 +1390,8 @@ public async Task ParseDocumentWithEmptyPathsSucceeds()
public async Task ParseDocumentWithExampleReferencesPasses()
{
// Act & Assert: Ensure no NullReferenceException is thrown
Func<Task> act = async () =>
{
await OpenApiDocument.LoadAsync(System.IO.Path.Combine(SampleFolderPath, "docWithExampleReferences.yaml"));
};

await act.Should().NotThrowAsync<NullReferenceException>();
var result = await OpenApiDocument.LoadAsync(Path.Combine(SampleFolderPath, "docWithExampleReferences.yaml"));
Assert.Empty(result.Diagnostic.Errors);
}
}
}

0 comments on commit 21253f6

Please sign in to comment.