Add support for using generic SQL queries to filter EditData rows. (#605)

This commit is contained in:
Cory Rivera
2018-05-02 10:13:47 -07:00
committed by GitHub
parent 5a55e8b35c
commit 7415c529f3
13 changed files with 300 additions and 11 deletions

View File

@@ -75,5 +75,21 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.UtilityTests
{
Assert.Equal(output, FromSqlScript.UnwrapLiteral(input));
}
[Theory]
[InlineData("[name]", true)]
[InlineData("[ name ]", true)]
[InlineData("[na[[]me]", true)]
[InlineData("[]", true)]
[InlineData("name", false)]
[InlineData("[name", false)]
[InlineData("name]", false)]
[InlineData("[]name", false)]
[InlineData("name[]", false)]
[InlineData("[na]me", false)]
public void BracketedIdentifierTest(string input, bool output)
{
Assert.Equal(output, FromSqlScript.IsIdentifierBracketed(input));
}
}
}