diff --git a/src/Markdig.Tests/TestStringSliceList.cs b/src/Markdig.Tests/TestStringSliceList.cs index 6136c246..1ce99dda 100644 --- a/src/Markdig.Tests/TestStringSliceList.cs +++ b/src/Markdig.Tests/TestStringSliceList.cs @@ -231,5 +231,12 @@ public class TestStringSliceList StringLine currentLine = (StringLine)enumerator.Current; TextAssert.AreEqual("A", currentLine.ToString()); Assert.False(enumerator.MoveNext()); + + var nonBoxedEnumerator = text.GetEnumerator(); + + Assert.True(nonBoxedEnumerator.MoveNext()); + currentLine = (StringLine)nonBoxedEnumerator.Current; + TextAssert.AreEqual("A", currentLine.ToString()); + Assert.False(nonBoxedEnumerator.MoveNext()); } -} \ No newline at end of file +}