Skip to content

Commit

Permalink
Fixed broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
rdagumampan committed Feb 11, 2020
1 parent 7617270 commit 0d53e69
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions yuniql-tests/unit-tests/CommandLineServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,11 @@ public void Test_Verify_Option_No_Explicit_Options()
sut.RunVerify(option);

//assert
var toolName = "yuniql-cli";
var toolVersion = typeof(CommandLineService).Assembly.GetName().Version.ToString();

migrationService.Verify(s => s.Initialize("sqlserver-connection-string", DefaultConstants.CommandTimeoutSecs));
migrationService.Verify(s => s.Run(@"c:\temp\yuniql", "v1.00", false, It.Is<List<KeyValuePair<string, string>>>(x => x.Count == 0), true, DefaultConstants.Delimiter, DefaultConstants.CommandTimeoutSecs, null, null, null, null));
migrationService.Verify(s => s.Run(@"c:\temp\yuniql", "v1.00", false, It.Is<List<KeyValuePair<string, string>>>(x => x.Count == 0), true, DefaultConstants.Delimiter, DefaultConstants.CommandTimeoutSecs, null, toolName, toolVersion, null));
}

[TestMethod]
Expand All @@ -276,13 +279,16 @@ public void Test_Verify_Option_With_Tokens()
sut.RunVerify(option);

//assert
var toolName = "yuniql-cli";
var toolVersion = typeof(CommandLineService).Assembly.GetName().Version.ToString();

migrationService.Verify(s => s.Initialize("sqlserver-connection-string", DefaultConstants.CommandTimeoutSecs));
migrationService.Verify(s => s.Run(@"c:\temp\yuniql", "v1.00", false,
It.Is<List<KeyValuePair<string, string>>>(x =>
x[0].Key == "Token1" && x[0].Value == "TokenValue1"
&& x[1].Key == "Token2" && x[1].Value == "TokenValue2"
&& x[2].Key == "Token3" && x[2].Value == "TokenValue3"
), true, DefaultConstants.Delimiter, DefaultConstants.CommandTimeoutSecs, null, null, null, null));
), true, DefaultConstants.Delimiter, DefaultConstants.CommandTimeoutSecs, null, toolName, toolVersion, null));
}


Expand Down

0 comments on commit 0d53e69

Please sign in to comment.