17 references to s_unicode
Microsoft.CodeAnalysis.UnitTests (17)
Text\SourceTextTests.cs (17)
47Assert.Same(s_unicode, SourceText.From(HelloWorld, s_unicode).Encoding); 49var bytes = s_unicode.GetBytes(HelloWorld); 50Assert.Same(s_unicode, SourceText.From(bytes, bytes.Length, s_unicode).Encoding); 54Assert.Same(s_unicode, SourceText.From(stream, s_unicode).Encoding); 64Assert.Equal(utf8BOM, SourceText.From(bytes, bytes.Length, s_unicode).Encoding); 68Assert.Equal(utf8BOM, SourceText.From(stream, s_unicode).Encoding); 77var bytes = s_unicode.GetBytes(HelloWorld); 91var bytes = s_unicode.GetBytes(HelloWorld); 203var e1 = EncodedStringText.Create(new MemoryStream(s_unicode.GetBytes(HelloWorld)), s_unicode); 258Assert.Same(s_unicode, SourceText.From(actual, expected.Length, s_unicode).Encoding); 277Assert.Same(s_unicode, SourceText.From(actual, expected.Length, s_unicode).Encoding);