Beispiel #1
0
        public override bool Check(DateTime t)
        {
            this.t = t;
            var s1 = RogueMinimumFlow.DetermineSystemState(t);
            var s2 = RogueMinimumFlow.DetermineSystemState(t.AddDays(-1));

            return(s1 != s2);
        }
Beispiel #2
0
        public void TestFeb1994State()
        {
            DateTime t = new DateTime(1994, 2, 26);
            var      s = RogueMinimumFlow.DetermineSystemState(t);

            Assert.AreEqual(s, RogueMinimumFlow.SystemState.Median);

            t = new DateTime(1994, 2, 27);
            s = RogueMinimumFlow.DetermineSystemState(t);
            Assert.AreEqual(s, RogueMinimumFlow.SystemState.Dry);


            t = new DateTime(1995, 12, 4);
            s = RogueMinimumFlow.DetermineSystemState(t);
            Assert.AreEqual(s, RogueMinimumFlow.SystemState.Median);


            t = new DateTime(1995, 12, 5);
            s = RogueMinimumFlow.DetermineSystemState(t);
            Assert.AreEqual(s, RogueMinimumFlow.SystemState.Wet);
        }
Beispiel #3
0
 public void TestTodaysState()
 {
     // crashing for todays date... no daily value yet for today...
     var s = RogueMinimumFlow.DetermineSystemState(DateTime.Now);
 }