Ejemplo n.º 1
0
        public void ShouldFailValidationForDependencyProperty()
        {
            PropertyItem property = new PropertyItem(new PropertyGrid(), new DependencyObjectMock(), DependencyObjectMock.ExtractProperty("InvalidProperty"));

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