mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-01 17:24:42 -05:00
Fix tests with the updated the Command class
This commit is contained in:
@@ -66,7 +66,7 @@ namespace Microsoft.SqlTools.Test.CompletionExtension
|
||||
{
|
||||
item.Command = new Command
|
||||
{
|
||||
CommandStr = "vsintellicode.completionItemSelected",
|
||||
command = "vsintellicode.completionItemSelected",
|
||||
Arguments = new object[] { new Dictionary<string, string> { { "IsCommit", "True" } } }
|
||||
};
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.LanguageServer
|
||||
//Validate the first completion item in the list is preselected
|
||||
Assert.True(completions[0].Preselect.HasValue && completions[0].Preselect.Value, "Preselect is not set properly in the first completion item by the completion extension!");
|
||||
//Validate the Command object attached to the completion item by the extension
|
||||
Assert.True(completions[0].Command != null && completions[0].Command.CommandStr == "vsintellicode.completionItemSelected", "Command is not set properly in the first completion item by the completion extension!");
|
||||
Assert.True(completions[0].Command != null && completions[0].Command.command == "vsintellicode.completionItemSelected", "Command is not set properly in the first completion item by the completion extension!");
|
||||
|
||||
//clean up the temp file
|
||||
File.Delete(assemblyCopyPath);
|
||||
|
||||
Reference in New Issue
Block a user