예제 #1
0
        public void Should_Be_Valid_Exclusion()
        {
            var wde = new WatchdogExclusion();

            wde.Start = 0;
            wde.End   = 730;
            var result = new ValidationResult();

            wde.Validate(result);
            Assert.IsTrue(result.Successful);
        }
예제 #2
0
        public void Should_Not_Be_Valid_Exclusion_When_End_Is_Invalid_Hours()
        {
            var wde = new WatchdogExclusion();

            wde.Start = 0;
            wde.End   = 3230;
            var result = new ValidationResult();

            wde.Validate(result);
            Assert.IsFalse(result.Successful);
            Console.WriteLine(result.Errors.First().ToString());
        }