public void WhenConnectionExists_ThenReturnSetting() { var sut = new ConnectionSettingsProvider(); var result = sut.GetConnectionSettings("MyDb"); Assert.That(result.ConnectionString, Is.EqualTo("Data Source=.;Initial Catalog=MyDb;Integrated Security=True")); }
public void WhenKeyIsNull_ThenThrowException() { Assert.Throws <ArgumentException>(() => _sut.GetConnectionSettings(null)); }