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);
        }
Beispiel #2
0
        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);
        }