Ejemplo n.º 1
0
        public void TestMthod2()
        {
            var Input_text   = "we will we will rock you";
            var Input_first  = "we";
            var Input_Second = "will";
            var Expected     = new string[] { "we", "rock" };
            var Actual       = OccurrencesAfterBigram_1078.FindOcurrences(Input_text, Input_first, Input_Second);

            CollectionAssert.AreEqual(Expected, Actual);
        }
Ejemplo n.º 2
0
        public void TestMthod1()
        {
            var Input_text   = "alice is a good girl she is a good student";
            var Input_first  = "a";
            var Input_Second = "good";
            var Expected     = new string[] { "girl", "student" };
            var Actual       = OccurrencesAfterBigram_1078.FindOcurrences(Input_text, Input_first, Input_Second);

            CollectionAssert.AreEqual(Expected, Actual);
        }