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

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