public void SetConfigValue_WhenSettingIdIsWhitespace_ThrowsArgumentNullException() { // Arrange Action action = () => ConfigSettingsExtensions.SetConfigValue(new AnalysisConfig(), " ", "bar"); // Act & Assert action.ShouldThrowExactly <ArgumentNullException>().And.ParamName.Should().Be("settingId"); }
public void SetConfigValue_WhenConfigIsNull_ThrowsArgumentNullException() { // Arrange Action action = () => ConfigSettingsExtensions.SetConfigValue(null, "foo", "bar"); // Act & Assert action.ShouldThrowExactly <ArgumentNullException>().And.ParamName.Should().Be("config"); }