示例#1
0
        public void CompareStringToArray_True()
        {
            //Arrange
            string input = "The last theme for the Wednesday talk was Pokemon.";

            string[]      inputArray       = { "The", "last", "theme", "for", "the", "Wednesday", "talk", "was", "Pokemon." };
            RepeatCounter newRepeatCounter = new RepeatCounter();

            //Act
            newRepeatCounter.SetUserCompareString(input);
            string[] result = newRepeatCounter.CompareStringToArray();

            //Assert
            CollectionAssert.AreEqual(inputArray, result);
        }