예제 #1
0
        public void TestParallelFindSmallMatrixShortStream()
        {
            var solver = new WordFinder(_matrixSmall);
            var result = solver.ParallelFind(_searchWordsShort);

            Assert.AreEqual(3, result.Count);
        }
예제 #2
0
        public void TestParallelFindBigMatrixLongStream()
        {
            var solver = new WordFinder(_matrixLarge);
            var result = solver.ParallelFind(_searchWordsLong);

            Assert.AreEqual(10, result.Count);
            Assert.AreEqual((result.GetRange(0, 3)), new List <string>()
            {
                "cold", "wind", "snow"
            });
        }