public void InvalidTest() { var target = new TestValue { Name = "0123456789012345678901234567890", }; Assert.IsFalse(target.IsValid()); target.ConfirmValid(); }
public void ValidationTest() { var target = new TestValue { Name = "gogo", }; Assert.IsTrue(target.IsValid()); Assert.IsNotNull(target.ConfirmValid()); }