Exemplo n.º 1
0
        public void InvalidTest()
        {
            var target = new TestValue
            {
                Name = "0123456789012345678901234567890",
            };

            Assert.IsFalse(target.IsValid());
            target.ConfirmValid();
        }
Exemplo n.º 2
0
        public void ValidationTest()
        {
            var target = new TestValue
            {
                Name = "gogo",
            };

            Assert.IsTrue(target.IsValid());
            Assert.IsNotNull(target.ConfirmValid());
        }