コード例 #1
0
        public void Returns_null_if_value_is_valid_email()
        {
            var requirement = new IsValidEmailRequirement();

            Assert.Empty(requirement.Check("*****@*****.**"));
            Assert.Empty(requirement.Check("Bob Bobson <*****@*****.**>"));
        }
コード例 #2
0
        public void Returns_error_if_value_is_not_a_valid_email()
        {
            var requirement = new IsValidEmailRequirement();

            Assert.NotEmpty(requirement.Check("123456"));
            Assert.NotEmpty(requirement.Check("b<*****@*****.**"));
        }
コード例 #3
0
 public void Returns_null_if_value_is_valid_email() {
   var requirement = new IsValidEmailRequirement();
   Assert.Empty(requirement.Check("*****@*****.**"));
   Assert.Empty(requirement.Check("Bob Bobson <*****@*****.**>"));
 }
コード例 #4
0
 public void Returns_error_if_value_is_not_a_valid_email() {
   var requirement = new IsValidEmailRequirement();
   Assert.NotEmpty(requirement.Check("123456"));
   Assert.NotEmpty(requirement.Check("b<*****@*****.**"));
 }