Esempio n. 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);
        }
Esempio n. 4
0
 public void Setup()
 {
     intermediateQueue = new IntermediateQueue();
     expected          = new Dictionary <string, List <int> >();
 }