public void Add_ExtensionsIsEmpty_ThrowsArgumentException() { FileFilterBuilder builder = new FileFilterBuilder(); Action act = () => builder.Add("ext", Array.Empty <string>()); act.Should().Throw <ArgumentException>(); }
public void Add_DescriptionIsEmpty_ThrowsArgumentException() { FileFilterBuilder builder = new FileFilterBuilder(); Action act = () => builder.Add(String.Empty, "ext"); act.Should().Throw <ArgumentException>(); }
public void Add_ExtensionsIsNull_ThrowsArgumentNullException() { FileFilterBuilder builder = new FileFilterBuilder(); Action act = () => builder.Add("description", null); act.Should().Throw <ArgumentNullException>(); }
public void Add_DescriptionIsNull_ThrowsArgumentNullException() { FileFilterBuilder builder = new FileFilterBuilder(); Action act = () => builder.Add(null, "ext"); act.Should().Throw <ArgumentNullException>(); }