public void NegativeCrestWidth() { IWeir weir = new Weir("test") {CrestWidth = (-10)}; var validationResult = weir.Validate(); Assert.IsFalse(validationResult.IsValid); Assert.AreEqual(1, validationResult.Messages.Count()); Assert.AreEqual(weir, validationResult.ValidationException.Context.Instance); }
public void NegativeCrestWidth() { IWeir weir = new Weir("test") { CrestWidth = (-10) }; var validationResult = weir.Validate(); Assert.IsFalse(validationResult.IsValid); Assert.AreEqual(1, validationResult.Messages.Count()); Assert.AreEqual(weir, validationResult.ValidationException.Context.Instance); }
public void DefaultWeir() { IWeir weir = new Weir("test"); Assert.IsTrue(weir.Validate().IsValid); }
public void DefaultWeir() { IWeir weir = new Weir("test"); Assert.IsTrue(weir.Validate().IsValid); }