Text\SourceTextTests.cs (13)
56Assert.Same(s_utf8, SourceText.From(HelloWorld, s_utf8).Encoding);
227var f = SourceText.From(HelloWorld, s_utf8);
229Assert.True(f.ContentEquals(SourceText.From(HelloWorld, s_utf8)));
230Assert.False(f.ContentEquals(SourceText.From(HelloWorld + "o", s_utf8)));
231Assert.True(SourceText.From(HelloWorld, s_utf8).ContentEquals(SourceText.From(HelloWorld, s_utf8)));
234var e2 = EncodedStringText.Create(new MemoryStream(s_utf8.GetBytes(HelloWorld)), s_utf8);
374Assert.Same(s_utf8, SourceText.From(actual, expected.Length, s_utf8).Encoding);
393Assert.Same(s_utf8, SourceText.From(actual, expected.Length, s_utf8).Encoding);