public void ValidationError_Constructor_With_Name_And_Message_Sets_Properties()
        {
            // Act
            ValidationError error = new ValidationError("Bar", "Foo");

            // Assert
            Assert.AreEqual("Bar", error.PropertyName);
            Assert.AreEqual("Foo", error.ErrorMessage);
            Assert.IsNull(error.TargetObject);
        }
        public void ValidationError_Constructor_With_Name_Message_And_Target_Sets_Properties()
        {
            // Act
            object expected = new object();
            ValidationError error = new ValidationError("Bar", "Foo", expected);

            // Assert
            Assert.AreEqual("Bar", error.PropertyName);
            Assert.AreEqual("Foo", error.ErrorMessage);
            Assert.AreSame(expected, error.TargetObject);
        }