public void SetSettingsFilePath_WhenFileNameIsNull_ThrowsArgumentNullException() { // Arrange Action action = () => ConfigSettingsExtensions.SetSettingsFilePath(new AnalysisConfig(), null); // Act & Assert action.ShouldThrowExactly <ArgumentNullException>().And.ParamName.Should().Be("fileName"); }
public void SetSettingsFilePath_WhenConfigIsNull_ThrowsArgumentNullException() { // Arrange Action action = () => ConfigSettingsExtensions.SetSettingsFilePath(null, "foo"); // Act & Assert action.ShouldThrowExactly <ArgumentNullException>().And.ParamName.Should().Be("config"); }