Beispiel #1
0
            public void ValidationTest_Match()
            {
                PersonWithInverted person = new PersonWithInverted();

                var validateResult = person.Validate();

                Assert.AreEqual(1, validateResult.Count());
                Assert.AreEqual(Person.CoupleNameErrorMessage, validateResult.Single().ErrorMessage);
            }
Beispiel #2
0
            public void ValidationTest_NotMatch()
            {
                PersonWithInverted person = new PersonWithInverted()
                {
                    IsNotCouple = true
                };

                var validateResult = person.Validate();

                Assert.IsFalse(validateResult.Any());
            }