Esempio n. 1
0
        public void ProcessWords_TestOnSetOfWords(string[] words)
        {
            var reader    = new WordReaderMockup(words);
            var processor = new WordProcessorMockup();

            Program.ProcessWords(reader, processor);

            CollectionAssert.AreEqual(words, processor.Words);
        }
Esempio n. 2
0
        public void ProcessWords_TestOnSetOfWords(string[] words)
        {
            var reader = new WordReaderMockup(words);
            var processor = new WordProcessorMockup();

            Program.ProcessWords(reader, processor);

            CollectionAssert.AreEqual(words, processor.Words);
        }