コード例 #1
0
        public void GetWordCount_SplitUserInputString_UserStringSplit()
        {
            // Arrange
            string userString = "The Atlanta Braves will win the World Series this year";
            string userWord   = "win";

            string[] userStringArray = { "The", "Atlanta", "Braves", "will", "win", "the", "World", "Series", "this", "year" };

            // Act
            WordCount newWordCount = new WordCount(userString, userWord);

            // Assert
            Assert.Equal(userStringArray, newWordCount.GetUserSentenceArray());
        }