Example #1
0
 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);
 }
Example #2
0
        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);
        }
Example #3
0
        public void DefaultWeir()
        {
            IWeir weir = new Weir("test");

            Assert.IsTrue(weir.Validate().IsValid);
        }
Example #4
0
 public void DefaultWeir()
 {
     IWeir weir = new Weir("test");
     Assert.IsTrue(weir.Validate().IsValid);
 }