예제 #1
0
        public void PingList_Adds_Values()
        {
            PingList pingList = new PingList();

            pingList.Add(DateTime.Now.Ticks);
            pingList.Add(DateTime.Now.Ticks);
            pingList.Add(DateTime.Now.Ticks);
            pingList.Add(DateTime.Now.Ticks);

            Assert.AreEqual(pingList.Length(), 4);
        }
예제 #2
0
        public void PingList_Starts_Empty()
        {
            PingList pingList = new PingList();

            Assert.AreEqual(pingList.Length(), 0);
        }