Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
604 changes: 305 additions & 299 deletions test/LEGO.AsyncAPI.Tests/AsyncApiDocumentV2Tests.cs

Large diffs are not rendered by default.

27 changes: 17 additions & 10 deletions test/LEGO.AsyncAPI.Tests/AsyncApiLicenseTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ public class AsyncApiLicenseTests
[Test]
public void Serialize_WithAllProperties_Serializes()
{
var expected = @"{
""name"": ""test"",
""url"": ""https://example.com/license"",
""x-extension"": ""value""
}";
var expected =
"""
{
"name": "test",
"url": "https://example.com/license",
"x-extension": "value"
}
""";

var license = new AsyncApiLicense()
{
Name = "test",
Expand Down Expand Up @@ -56,11 +60,14 @@ public static Stream GenerateStreamFromString(string s)
public void LoadLicense_WithJson_Deserializes()
{
// Arrange
var input = @"{
""name"": ""test"",
""url"": ""https://example.com/license"",
""x-extension"": ""value""
}";
var input =
"""
{
"name": "test",
"url": "https://example.com/license",
"x-extension": "value"
}
""";

using (var stream = GenerateStreamFromString(input))
{
Expand Down
Loading