public void MockDbConnectionInfoTestExposesExpectedInterfaces() { var result = new MockDbConnectionInfo(); Assert.That(result, Is.InstanceOf<IDbConnectionInfo>()); Assert.That(result, Is.InstanceOf<IMockDbConnectionInfo>()); }
public void GetUnsupportedParametersThrows() { var connectionInfo = new MockDbConnectionInfo() { ConnectionStringName = "Test1" }; Assert.Throws<NotImplementedException>(() => { var _ = connectionInfo.ServerAddress; }); Assert.Throws<NotImplementedException>(() => { var _ = connectionInfo.ServerPort; }); Assert.Throws<NotImplementedException>(() => { var _ = connectionInfo.UserName; }); Assert.Throws<NotImplementedException>(() => { var _ = connectionInfo.Password; }); }