public void ShouldFailValidationForDependencyProperty() { PropertyItem property = new PropertyItem(new PropertyGrid(), new DependencyObjectMock(), DependencyObjectMock.ExtractProperty("InvalidProperty")); Assert.IsFalse(property.Validate("value")); }
public void ShouldPassValidationForDependencyProperty() { PropertyItem property = new PropertyItem(new PropertyGrid(), new DependencyObjectMock(), DependencyObjectMock.ExtractProperty("ValidProperty")); Assert.IsTrue(property.Validate("value")); }