mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 09:59:48 -05:00
Fixed a failed test
This commit is contained in:
@@ -99,7 +99,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.ServiceHost
|
||||
{
|
||||
ScriptFile scriptFile = GetTestScriptFile();
|
||||
int offset = scriptFile.GetOffsetAtPosition(2, 5);
|
||||
Assert.True(offset == 37, "Offset is at expected location");
|
||||
int expected = 35 + Environment.NewLine.Length;
|
||||
Assert.True(offset == expected, "Offset is at expected location");
|
||||
|
||||
BufferPosition position = scriptFile.GetPositionAtOffset(offset);
|
||||
Assert.True(position.Line == 2 && position.Column == 5, "Position is at expected location");
|
||||
|
||||
Reference in New Issue
Block a user