5 references to TestAccessor
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
LexicalAndXml\LexicalTests.cs (5)
4619
Assert.Equal(SlidingTextWindow.DefaultWindowLength - 2, SlidingTextWindow.
TestAccessor
.GetOffset(lexer.TextWindow));
4623
Assert.Equal(SlidingTextWindow.DefaultWindowLength - 1, SlidingTextWindow.
TestAccessor
.GetOffset(lexer.TextWindow));
4628
Assert.Equal(code.IndexOf('.'), SlidingTextWindow.
TestAccessor
.GetCharacterWindowStartPositionInText(lexer.TextWindow));
4629
Assert.Equal(2, SlidingTextWindow.
TestAccessor
.GetOffset(lexer.TextWindow));
4630
Assert.StartsWith("..0;", SlidingTextWindow.
TestAccessor
.GetCharacterWindow(lexer.TextWindow).AsSpan().ToString());