예제 #1
0
        public void ClearAll_ClearAllRepeatCounters_void()
        {
            //arrange
            RepeatCounter catCounter   = new RepeatCounter("cat", "the cat and the dog are great");
            RepeatCounter dogCounter   = new RepeatCounter("dog", "the cat and the dog are great");
            RepeatCounter theCounter   = new RepeatCounter("the", "the cat and the dog are great");
            int           controlCount = 0;

            //act
            RepeatCounter.ClearAll();
            List <RepeatCounter> controlList = RepeatCounter.GetAll();
            int counterCount = controlList.Count;

            //assert
            Assert.AreEqual(controlCount, counterCount);
        }
예제 #2
0
 public void Dispose()
 {
     RepeatCounter.ClearAll();
 }