Пример #1
0
        public void Clear_RemovesAllPrevious()
        {
            _unitUnderTest = new FifoScheduler();
            _unitUnderTest.Add(new PageToCrawl(new Uri("http://a.com/")));
            _unitUnderTest.Add(new PageToCrawl(new Uri("http://b.com/")));
            _unitUnderTest.Add(new PageToCrawl(new Uri("http://c.com/")));

            _unitUnderTest.Clear();

            Assert.AreEqual(0, _unitUnderTest.Count);
        }