9 references to LargeSource
Microsoft.CodeAnalysis.UnitTests (9)
EmbeddedTextTests.cs (9)
158var bytes = Encoding.Unicode.GetBytes(LargeSource); 172var bytes = Encoding.Unicode.GetBytes(LargeSource); 187var source = SourceText.From(LargeSource, Encoding.Unicode, SourceHashAlgorithms.Default); 193AssertEx.Equal(BitConverter.GetBytes(Encoding.Unicode.GetPreamble().Length + LargeSource.Length * sizeof(char)), text.Blob.Take(4)); 194AssertEx.Equal(Encoding.Unicode.GetPreamble().Concat(Encoding.Unicode.GetBytes(LargeSource)), Decompress(text.Blob.Skip(4))); 215var expected = SourceText.From(LargeSource, Encoding.UTF8, SourceHashAlgorithm.Sha1); 218var actual = SourceText.From(new StringReader(LargeSource), LargeSource.Length, Encoding.UTF8, SourceHashAlgorithm.Sha1); 230byte[] bytes = Encoding.ASCII.GetBytes(LargeSource);