using NUnit.Framework; using Markdig.Extensions.EmphasisExtras; namespace Markdig.Tests { [TestFixture] public class TestEmphasisExtraOptions { [Test] public void OnlyStrikethrough_Single() { TestParser.TestSpec("~foo~", "
~foo~
", new MarkdownPipelineBuilder().UseEmphasisExtras(EmphasisExtraOptions.Strikethrough).Build()); } [Test] public void OnlyStrikethrough_Double() { TestParser.TestSpec("~~foo~~", "foo
foo
", new MarkdownPipelineBuilder().UseEmphasisExtras(EmphasisExtraOptions.Subscript).Build()); } [Test] public void OnlySubscript_Double() { TestParser.TestSpec("~~foo~~", "foo
", new MarkdownPipelineBuilder().UseEmphasisExtras(EmphasisExtraOptions.Subscript).Build()); } [Test] public void SubscriptAndStrikethrough_Single() { TestParser.TestSpec("~foo~", "foo
", new MarkdownPipelineBuilder().UseEmphasisExtras(EmphasisExtraOptions.Strikethrough | EmphasisExtraOptions.Subscript).Build()); } [Test] public void SubscriptAndStrikethrough_Double() { TestParser.TestSpec("~~foo~~", "foo