Ejemplo n.º 1
0
        public void SummaryBasicFunctionality()
        {
            Person person = new Person();

            Assert.IsFalse(runner.IsValid(person));

            Assert.IsTrue(runner.HasErrors(person));

            ErrorSummary errorSummary = runner.GetErrorSummary(person);

            Assert.IsNotNull(errorSummary);
            Assert.AreEqual(2, errorSummary.ErrorsCount);
            Assert.AreEqual(2, errorSummary.InvalidPropertiesCount);
        }