Task/batch parser wrapper tests (#327)

* added more batch parser tests

* fixed merge conflicts

* change debug type to portable

* fixed imports according to review

* fixed sql cmd tests

* making change to check appveyor tests

* removed coverage result file
This commit is contained in:
Aditya Bist
2017-04-24 09:10:10 -07:00
committed by GitHub
parent 06eddd57f4
commit cf9a81aec9
2 changed files with 5 additions and 8 deletions

View File

@@ -49,15 +49,16 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.BatchParser
bpcmd.SetVariable(testPOS, "variable5", "test5");
bpcmd.SetVariable(testPOS, "variable6", "test6");
Assert.Equal(bpcmd.InternalVariables.Count, 6);
bpcmd.SetVariable(testPOS, "variable1", null);
}
[Fact]
public void CheckSetNullValueVariable()
{
bpcmd.SetVariable(testPOS, "variable6", null);
Assert.Equal(bpcmd.InternalVariables.Count, 5);
Assert.Equal(bpcmd.InternalVariables.Count, 3);
bpcmd.SetVariable(testPOS, "variable4", "test4");
Assert.Equal(bpcmd.InternalVariables.Count, 4);
bpcmd.SetVariable(testPOS, "variable4", null);
Assert.Equal(bpcmd.InternalVariables.Count, 3);
}
[Fact]
@@ -94,9 +95,6 @@ namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.BatchParser
var action = new OnErrorAction();
var result = bpcmd.OnError(null, action);
Assert.Equal(result, BatchParserAction.Continue);
bpcmd.ErrorActionChanged = null;
result = bpcmd.OnError(null, action);
Assert.NotEqual(result, BatchParserAction.Continue);
}
[Fact]