public void CountsSetCorrectly() { var Validate = new Validator(); int Age = 15; Validate.That(Age, "Age").IsGreaterThanOrEqual(13) .WarnUnless().IsGreaterThanOrEqual(18); Assert.AreEqual(0, Validate.ErrorCount()); Assert.IsFalse(Validate.HasErrors()); Assert.AreEqual(1, Validate.WarningCount()); Assert.IsTrue(Validate.HasWarnings()); }