Feature/reliable connection tests (#102)

* Ported ReliableConnectionTests from DacFx and added a few more tests

* Fix style

* Created integration tests configuration and fixed minor test issue
This commit is contained in:
Mitchell Sternke
2016-10-18 12:19:16 -07:00
committed by GitHub
parent 3443e9bcf7
commit a3335708c6
4 changed files with 354 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Test.Connection
var commandMockSetup = commandMock.Protected()
.Setup<DbDataReader>("ExecuteDbDataReader", It.IsAny<CommandBehavior>());
commandMockSetup.Returns(new TestDbDataReader(data));
commandMockSetup.Returns(() => new TestDbDataReader(data));
return commandMock.Object;
}