public void BaseDbConnection_BadConnectionString() { // Arrange BaseDbConnection obj = new BaseDbConnection(TEST_BAD_CONNECTION_STRING); // Act var result = obj.GetDatabaseConnection(); }
public void BaseDbConnection_IDbConnectionGetsConnectionString() { // Arrange BaseDbConnection obj = new BaseDbConnection(TEST_GOOD_CONNECTION_STRING); // Act var result = obj.GetDatabaseConnection(); // Assert Assert.AreEqual(TEST_GOOD_CONNECTION_STRING, result.ConnectionString); }
public void BaseDbConnection_ConstructorParamNull() { // Arrange / Act / Assert BaseDbConnection obj = new BaseDbConnection(""); }