예제 #1
0
        public void ShouldFailValidationForDependencyProperty()
        {
            PropertyItem property = new PropertyItem(new PropertyGrid(), new DependencyObjectMock(), DependencyObjectMock.ExtractProperty("InvalidProperty"));

            Assert.IsFalse(property.Validate("value"));
        }
예제 #2
0
 public void ShouldPassValidationForDependencyProperty()
 {
     PropertyItem property = new PropertyItem(new PropertyGrid(), new DependencyObjectMock(), DependencyObjectMock.ExtractProperty("ValidProperty"));
       Assert.IsTrue(property.Validate("value"));
 }