Ejemplo n.º 1
0
        public void PropertySet_IgnoreValidationIfDefault()
        {
            var expected = new TestObjectIgnoreValidation();
            var actual   = new TestObjectIgnoreValidation {
                Value = "ValidationCustom"
            };

            Assert.That(actual, Entity.Is.EqualTo(expected));
        }
Ejemplo n.º 2
0
        public void PropertySet_IgnoreValidation()
        {
            var expected = new TestObjectIgnoreValidation {
                IgnoredField = "Validation"
            };
            var actual = new TestObjectIgnoreValidation {
                IgnoredField = "ValidationCustom"
            };

            Assert.That(actual, Entity.Is.EqualTo(expected));
        }