コード例 #1
0
        public void Validate_NotAppSupportDepartmentKnownAppSupportTitle_Throws(string title)
        {
            var validator = new ValidateNonArchitectAndNonAppsTitle();
            var data = new[]
            {
                new FileData { Fieldname = Constants.Field.Dept, StringValue = "abc" },
                new FileData { Fieldname = Constants.Field.Title, StringValue = title }
            };

            Assert.Throws<ArgumentException>(() => validator.Validate(data));
        }
コード例 #2
0
        public void Validate_NonArchitectAndNonAppsTitle_Succeeds()
        {
            var validator = new ValidateNonArchitectAndNonAppsTitle();
            var data = new[]
            {
                new FileData { Fieldname = Constants.Field.Dept, StringValue = "abc" },
                new FileData { Fieldname = Constants.Field.Title, StringValue = "xyz" }
            };

            Assert.DoesNotThrow(() => validator.Validate(data));
        }