コード例 #1
0
        public void Add_ExtensionsIsEmpty_ThrowsArgumentException()
        {
            FileFilterBuilder builder = new FileFilterBuilder();
            Action            act     = () => builder.Add("ext", Array.Empty <string>());

            act.Should().Throw <ArgumentException>();
        }
コード例 #2
0
        public void Add_DescriptionIsEmpty_ThrowsArgumentException()
        {
            FileFilterBuilder builder = new FileFilterBuilder();
            Action            act     = () => builder.Add(String.Empty, "ext");

            act.Should().Throw <ArgumentException>();
        }
コード例 #3
0
        public void Add_ExtensionsIsNull_ThrowsArgumentNullException()
        {
            FileFilterBuilder builder = new FileFilterBuilder();
            Action            act     = () => builder.Add("description", null);

            act.Should().Throw <ArgumentNullException>();
        }
コード例 #4
0
        public void Add_DescriptionIsNull_ThrowsArgumentNullException()
        {
            FileFilterBuilder builder = new FileFilterBuilder();
            Action            act     = () => builder.Add(null, "ext");

            act.Should().Throw <ArgumentNullException>();
        }