-
Notifications
You must be signed in to change notification settings - Fork 865
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: switch XRefMap serialization logics to use System.Text.Json
- Loading branch information
Showing
8 changed files
with
3,639 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
test/docfx.Tests/SerializationTests/JsonSerializationTest.XRefMap.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using Docfx; | ||
using Docfx.Build.Engine; | ||
using Docfx.Common; | ||
using Docfx.Plugins; | ||
using FluentAssertions; | ||
|
||
namespace docfx.Tests; | ||
|
||
public partial class JsonSerializationTest | ||
{ | ||
[Theory] | ||
[TestData<XRefMap>] | ||
public void JsonSerializationTest_XRefMap(string path) | ||
{ | ||
// Arrange | ||
var model = TestData.Load<XRefMap>(path); | ||
|
||
// Act/Assert | ||
ValidateJsonRoundTrip(model); | ||
} | ||
} |
1,926 changes: 1,926 additions & 0 deletions
1,926
test/docfx.Tests/SerializationTests/TestData/XRefMap/xrefmap_01.json
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.