Beispiel #1
0
        public void SlidingSummedIntervals_2()
        {
            Tnum t = new Tnum(Hstate.Unstated);
            Tnum r = t.SlidingSummedIntervals(TheMonth, 2);

            Assert.AreEqual("Unstated", r.Out);
        }
Beispiel #2
0
        public void SlidingSummedIntervals_1()
        {
            Tnum t = new Tnum(1000);
            Tnum r = t.SlidingSummedIntervals(TheMonth, 2);

            Assert.AreEqual(2000, r.Out);
        }
Beispiel #3
0
        public void SlidingSummedIntervals_3()
        {
            Tnum t = new Tnum(Hstate.Stub);
            Tnum r = t.SlidingSummedIntervals(TheMonth, 2);

            Assert.AreEqual("Stub", r.Out);
        }
Beispiel #4
0
        public void SlidingSummedIntervals_7()
        {
            Tnum t = new Tnum(Hstate.Unstated);

            t.AddState(Date(2013, 1, 1), 2000);
            Tnum r = t.SlidingSummedIntervals(TheYear, 2);

            Assert.AreEqual("Unstated", r.Out);
        }
Beispiel #5
0
        public void SlidingSummedIntervals_4()
        {
            Tnum t = new Tnum(1000);

            t.AddState(Date(2013, 1, 1), 2000);
            Tnum r = t.SlidingSummedIntervals(TheYear, 2);

            Assert.AreEqual("{Dawn: 2000; 1/1/2014: 3000; 1/1/2015: 4000}", r.Out);
        }
 public void SlidingSummedIntervals_3()
 {
     Tnum t = new Tnum(Hstate.Stub);
     Tnum r = t.SlidingSummedIntervals(TheMonth, 2);
     Assert.AreEqual("Stub", r.Out);
 }
 public void SlidingSummedIntervals_2()
 {
     Tnum t = new Tnum(Hstate.Unstated);
     Tnum r = t.SlidingSummedIntervals(TheMonth, 2);
     Assert.AreEqual("Unstated", r.Out);
 }
 public void SlidingSummedIntervals_1()
 {
     Tnum t = new Tnum(1000);
     Tnum r = t.SlidingSummedIntervals(TheMonth, 2);
     Assert.AreEqual(2000, r.Out);
 }
 public void SlidingSummedIntervals_7()
 {
     Tnum t = new Tnum(Hstate.Unstated);
     t.AddState(Date(2013, 1, 1), 2000);
     Tnum r = t.SlidingSummedIntervals(TheYear, 2);
     Assert.AreEqual("Unstated", r.Out);
 }
 public void SlidingSummedIntervals_4()
 {
     Tnum t = new Tnum(1000);
     t.AddState(Date(2013, 1, 1), 2000);
     Tnum r = t.SlidingSummedIntervals(TheYear, 2);
     Assert.AreEqual("{Dawn: 2000; 1/1/2014: 3000; 1/1/2015: 4000}", r.Out);
 }