예제 #1
0
 public void Setup()
 {
     intermediateQueue = new IntermediateQueue();
 }
 public void SetUp()
 {
     _intermediateQueue = new IntermediateQueue();
 }
        public void FindWordsandPositionsShouldBeCorrect(string [] searchWords, Chunk chunk, IntermediateQueue expected)
        {
            //arrange
            Searcher searcher = new Searcher(searchWords, chunk, _intermediateQueue);

            //act
            searcher.FindWordsAndPositions();

            //assert
            Assert.AreEqual(expected, _intermediateQueue);
        }
예제 #4
0
 public void Setup()
 {
     intermediateQueue = new IntermediateQueue();
     expected          = new Dictionary <string, List <int> >();
 }