17 references to s_unicode
Microsoft.CodeAnalysis.UnitTests (17)
Text\SourceTextTests.cs (17)
57Assert.Same(s_unicode, SourceText.From(HelloWorld, s_unicode).Encoding);
59var bytes = s_unicode.GetBytes(HelloWorld);
60Assert.Same(s_unicode, SourceText.From(bytes, bytes.Length, s_unicode).Encoding);
64Assert.Same(s_unicode, SourceText.From(stream, s_unicode).Encoding);
74Assert.Equal(utf8BOM, SourceText.From(bytes, bytes.Length, s_unicode).Encoding);
78Assert.Equal(utf8BOM, SourceText.From(stream, s_unicode).Encoding);
87var bytes = s_unicode.GetBytes(HelloWorld);
101var bytes = s_unicode.GetBytes(HelloWorld);
219var e1 = EncodedStringText.Create(new MemoryStream(s_unicode.GetBytes(HelloWorld)), s_unicode);
361Assert.Same(s_unicode, SourceText.From(actual, expected.Length, s_unicode).Encoding);
380Assert.Same(s_unicode, SourceText.From(actual, expected.Length, s_unicode).Encoding);