Text\SourceTextTests.cs (13)
46Assert.Same(s_utf8, SourceText.From(HelloWorld, s_utf8).Encoding);
197var f = SourceText.From(HelloWorld, s_utf8);
199Assert.True(f.ContentEquals(SourceText.From(HelloWorld, s_utf8)));
200Assert.False(f.ContentEquals(SourceText.From(HelloWorld + "o", s_utf8)));
201Assert.True(SourceText.From(HelloWorld, s_utf8).ContentEquals(SourceText.From(HelloWorld, s_utf8)));
204var e2 = EncodedStringText.Create(new MemoryStream(s_utf8.GetBytes(HelloWorld)), s_utf8);
257Assert.Same(s_utf8, SourceText.From(actual, expected.Length, s_utf8).Encoding);
276Assert.Same(s_utf8, SourceText.From(actual, expected.Length, s_utf8).Encoding);