Skip to content

Commit 6d1fa96

Browse files
committed
Changed link parsing tests for #872
1 parent 47c4e9b commit 6d1fa96

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Markdig.Tests/TestLinkHelper.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,26 +112,26 @@ public void TestUrlAndTitle()
112112
}
113113

114114
[Test]
115-
public void TestUrlAndTitleEmpty()
115+
public void TestUrlEmptyAndTitleNull()
116116
{
117117
// 01234
118118
var text = new StringSlice(@"(<>)A");
119119
Assert.True(LinkHelper.TryParseInlineLink(ref text, out string link, out string title, out SourceSpan linkSpan, out SourceSpan titleSpan));
120120
Assert.AreEqual(string.Empty, link);
121-
Assert.AreEqual(string.Empty, title);
121+
Assert.AreEqual(null, title);
122122
Assert.AreEqual(new SourceSpan(1, 2), linkSpan);
123123
Assert.AreEqual(SourceSpan.Empty, titleSpan);
124124
Assert.AreEqual('A', text.CurrentChar);
125125
}
126126

127127
[Test]
128-
public void TestUrlAndTitleEmpty2()
128+
public void TestUrlEmptyAndTitleNull2()
129129
{
130130
// 012345
131131
var text = new StringSlice(@"( <> )A");
132132
Assert.True(LinkHelper.TryParseInlineLink(ref text, out string link, out string title, out SourceSpan linkSpan, out SourceSpan titleSpan));
133133
Assert.AreEqual(string.Empty, link);
134-
Assert.AreEqual(string.Empty, title);
134+
Assert.AreEqual(null, title);
135135
Assert.AreEqual(new SourceSpan(2, 3), linkSpan);
136136
Assert.AreEqual(SourceSpan.Empty, titleSpan);
137137
Assert.AreEqual('A', text.CurrentChar);
@@ -158,7 +158,7 @@ public void TestUrlEmpty()
158158
var text = new StringSlice(@"()A");
159159
Assert.True(LinkHelper.TryParseInlineLink(ref text, out string link, out string title, out SourceSpan linkSpan, out SourceSpan titleSpan));
160160
Assert.AreEqual(string.Empty, link);
161-
Assert.AreEqual(string.Empty, title);
161+
Assert.AreEqual(null, title);
162162
Assert.AreEqual(SourceSpan.Empty, linkSpan);
163163
Assert.AreEqual(SourceSpan.Empty, titleSpan);
164164
Assert.AreEqual('A', text.CurrentChar);

0 commit comments

Comments
 (0)