mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 18:47:57 -05:00
added unit test for temp tables
This commit is contained in:
@@ -524,6 +524,21 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.LanguageServer
|
|||||||
Assert.Equal(completionItem.Detail, expected);
|
Assert.Equal(completionItem.Detail, expected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void TempTablesShouldNotBeEscaped()
|
||||||
|
{
|
||||||
|
string declarationTitle = "#TestTable";
|
||||||
|
string expected = declarationTitle;
|
||||||
|
DeclarationType declarationType = DeclarationType.Table;
|
||||||
|
string tokenText = "";
|
||||||
|
SqlCompletionItem item = new SqlCompletionItem(declarationTitle, declarationType, tokenText);
|
||||||
|
CompletionItem completionItem = item.CreateCompletionItem(0, 1, 2);
|
||||||
|
|
||||||
|
Assert.Equal(completionItem.Label, expected);
|
||||||
|
Assert.Equal(completionItem.InsertText, expected);
|
||||||
|
Assert.Equal(completionItem.Detail, expected);
|
||||||
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void KindShouldBeModuleGivenSchemaDeclarationType()
|
public void KindShouldBeModuleGivenSchemaDeclarationType()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user