Skip to content

Commit

Permalink
chore: adds test for deconstructor
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <[email protected]>
  • Loading branch information
baywet committed Dec 23, 2024
1 parent d8c1593 commit 8902656
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/Microsoft.OpenApi.Tests/Reader/ReadResultTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using Xunit;
using Microsoft.OpenApi.Reader;
using Microsoft.OpenApi.Models;

namespace Microsoft.OpenApi.Tests.Reader;

public class ReadResultTests
{
[Fact]
public void Deconstructs()
{
var readResult = new ReadResult()
{
Document = new OpenApiDocument(),
Diagnostic = new OpenApiDiagnostic()
};
var (document, diagnostic) = readResult;
Assert.Equal(readResult.Document, document);
Assert.Equal(readResult.Diagnostic, diagnostic);
}
}

0 comments on commit 8902656

Please sign in to comment.