public void PropertyThatDoesNotExist() { var checker = new AlsoNotifyForPropertyNotExistsErrorChecker(); var propertyDefinition = DefinitionFinder.FindProperty(() => Property); var message = checker.CheckForError(new PropertyData { PropertyDefinition = propertyDefinition, PropertyNamesToNotify = new List<string> { "PropertyX"} }); Assert.IsNotNull(message); }
public void PropertyThatDoesNotExist() { var checker = new AlsoNotifyForPropertyNotExistsErrorChecker(); var propertyDefinition = DefinitionFinder.FindProperty(() => Property); var message = checker.CheckForError(new PropertyData { PropertyDefinition = propertyDefinition, PropertyNamesToNotify = new List <string> { "PropertyX" } }); Assert.IsNotNull(message); }