Example #1
0
        public void ClearTickMarkTest()
        {
            TimeLine tline = new TimeLine("Test");
            TickMark tick = new TickMark("Test", 0);

            tline.ClearTicks();

            List<TickMark> test = tline.GetTicks();
            Assert.AreEqual(0, test.Count());

            tline.NewTickMark(tick);
            Assert.AreEqual(1, test.Count());
        }
Example #2
0
        public void CreateandDeleteTickMarkTest()
        {
            TimeLine tline = new TimeLine("Test");
            TickMark tick = new TickMark("NEWTest", 0);
            List<TickMark> ticklist = tline.GetTicks();

            Assert.AreEqual(1, ticklist.Count());

            Assert.IsTrue(tline.NewTickMark(tick));

            ticklist = tline.GetTicks();
            Assert.AreEqual(2, ticklist.Count());

            Assert.IsTrue(tline.DeleteTickMark(tick));

            ticklist = tline.GetTicks();
            Assert.AreEqual(1, ticklist.Count());
        }