Esempio n. 1
0
 public void Ctor_ValidationResult_ReturnsClone()
 {
     ValidationResult validationResult = new ValidationResult("ErrorMessage", new string[] { "Member1", "Member2" });
     ValidationResultSubClass createdValidationResult = new ValidationResultSubClass(validationResult);
     Assert.Equal(validationResult.ErrorMessage, createdValidationResult.ErrorMessage);
     Assert.Equal(validationResult.MemberNames, createdValidationResult.MemberNames);
 }
Esempio n. 2
0
        public void Ctor_ValidationResult_ReturnsClone()
        {
            ValidationResult         validationResult        = new ValidationResult("ErrorMessage", new string[] { "Member1", "Member2" });
            ValidationResultSubClass createdValidationResult = new ValidationResultSubClass(validationResult);

            Assert.Equal(validationResult.ErrorMessage, createdValidationResult.ErrorMessage);
            Assert.Equal(validationResult.MemberNames, createdValidationResult.MemberNames);
        }