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