Sample URL (http://www.google.com)
"; TestUtility.VerifyMarkup(content, expected, optionalExtensions: [ - new("AutoLinks", new JsonObject - { - ["options"] = JsonSerializer.SerializeToNode(options, MarkdigExtensionSettingConverter.DefaultSerializerOptions), - }) + new("AutoLinks", JsonSerializer.SerializeToNode(options, MarkdigExtensionSettingConverter.DefaultSerializerOptions)) ]); } } diff --git a/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/EmojiTest.cs b/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/EmojiTest.cs index 722028c7895..b553c050151 100644 --- a/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/EmojiTest.cs +++ b/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/EmojiTest.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Text.Json.Nodes; using Markdig.Extensions.Emoji; using Xunit; @@ -41,10 +40,7 @@ public void EmojiTest_Smileys_Enabled() var expected = @"😃
"; TestUtility.VerifyMarkup(content, expected, optionalExtensions: [ - new("Emojis", new JsonObject - { - ["options"] = true - }), + new("Emojis", "DefaultAndSmileys"), ]); } @@ -55,10 +51,7 @@ public void EmojiTest_Smileys_Disabled() var expected = @":)
"; TestUtility.VerifyMarkup(content, expected, optionalExtensions: [ - new("Emojis", new JsonObject - { - ["options"] = false, - }), + new("Emojis", "Default"), ]); } } diff --git a/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/EmphasisExtraTest.cs b/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/EmphasisExtraTest.cs index 60a28684fd5..357895b70c3 100644 --- a/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/EmphasisExtraTest.cs +++ b/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/EmphasisExtraTest.cs @@ -1,7 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Text.Json.Nodes; using Markdig.Extensions.EmphasisExtras; using Xunit; @@ -63,10 +62,7 @@ public void EmphasisExtraTest_SuperscriptAndSubscript() { var expected = @"H2O is a liquid. 210 is 1024
"; TestUtility.VerifyMarkup(content, expected, optionalExtensions: [ - new("EmphasisExtras", new JsonObject - { - ["options"] = "Superscript, Subscript", - })]); + new("EmphasisExtras", "Superscript, Subscript")]); } } @@ -84,10 +80,7 @@ public void EmphasisExtraTest_Inserted() { var expected = @"Inserted text
"; TestUtility.VerifyMarkup(content, expected, optionalExtensions: [ - new("EmphasisExtras", new JsonObject - { - ["options"] = "Inserted", - })]); + new("EmphasisExtras", "Inserted")]); } } @@ -105,10 +98,7 @@ public void EmphasisExtraTest_Marked() { var expected = @"Marked text
"; TestUtility.VerifyMarkup(content, expected, optionalExtensions: [ - new("EmphasisExtras", new JsonObject - { - ["options"] = "Marked", - })]); + new("EmphasisExtras", "Marked")]); } } } diff --git a/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/MediaLinksTest.cs b/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/MediaLinksTest.cs index 5e2a66c84d1..e30d185a7d5 100644 --- a/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/MediaLinksTest.cs +++ b/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/MediaLinksTest.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; -using System.Text.Json.Nodes; using Docfx.MarkdigEngine.Extensions; using Markdig.Extensions.MediaLinks; using Xunit; @@ -44,10 +43,7 @@ public void MediaLinksTest_Custom() var expected = $""""""; TestUtility.VerifyMarkup(content, expected, optionalExtensions: [ - new("MediaLinks", new JsonObject - { - ["options"] = JsonSerializer.SerializeToNode(options, MarkdigExtensionSettingConverter.DefaultSerializerOptions), - }) + new("MediaLinks", JsonSerializer.SerializeToNode(options, MarkdigExtensionSettingConverter.DefaultSerializerOptions)) ]); } } diff --git a/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/PipeTableTest.cs b/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/PipeTableTest.cs index 6752955efd0..e8a254da131 100644 --- a/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/PipeTableTest.cs +++ b/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/PipeTableTest.cs @@ -2,7 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; -using System.Text.Json.Nodes; using Docfx.MarkdigEngine.Extensions; using Markdig.Extensions.Tables; using Xunit; @@ -86,10 +85,7 @@ public void PipeTableTest_Custom() TestUtility.VerifyMarkup(content, expected, optionalExtensions: ["gfm-pipetables"]); TestUtility.VerifyMarkup(content, expected, optionalExtensions: [ - new ("PipeTables", new JsonObject - { - ["options"] = JsonSerializer.SerializeToNode(options, MarkdigExtensionSettingConverter.DefaultSerializerOptions), - }) + new ("PipeTables", JsonSerializer.SerializeToNode(options, MarkdigExtensionSettingConverter.DefaultSerializerOptions)) ]); } } diff --git a/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/SmartyPantsTest.cs b/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/SmartyPantsTest.cs index 0f637be3954..b69ff223289 100644 --- a/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/SmartyPantsTest.cs +++ b/test/Docfx.MarkdigEngine.Extensions.Tests/MarkdigBuiltinExtensionTests/SmartyPantsTest.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. using System.Text.Json; -using System.Text.Json.Nodes; -using System.Text.Json.Serialization; using Docfx.MarkdigEngine.Extensions; using Markdig.Extensions.SmartyPants; using Xunit; @@ -52,10 +50,7 @@ public void SmartyPantsTest_Custom() string expected = "This is a <