18 references to HelloWorld
Microsoft.CodeAnalysis.UnitTests (18)
Text\LargeTextTests.cs (18)
46var text = CreateSourceText(HelloWorld); 47Assert.Equal(HelloWorld, text.ToString()); 48Assert.Equal(HelloWorld.Length, text.Length); 64var text = CreateSourceText(HelloWorld); 66Assert.Throws<IndexOutOfRangeException>(() => text[HelloWorld.Length]); 67for (int i = HelloWorld.Length - 1; i >= 0; i--) 69Assert.Equal(HelloWorld[i], text[i]); 76var text = CreateSourceText(HelloWorld); 79char[] buffer = new char[HelloWorld.Length + destOffset]; 91Assert.Equal(HelloWorld[i - destOffset], buffer[i]); 98Assert.Equal(HelloWorld[3], buffer[0]); 99Assert.Equal(HelloWorld[4], buffer[1]); 100Assert.Equal(HelloWorld[5], buffer[2]); 119sw.Write(HelloWorld); 126char[] buffer = new char[HelloWorld.Length]; 127for (int start = 0; start < text.Length; start += HelloWorld.Length) 129text.CopyTo(start, buffer, 0, HelloWorld.Length); 130Assert.Equal(HelloWorld, new string(buffer));