예제 #1
0
        public void GetInputWord_Return()
        {
            //Arrange
            string        inputWord        = "hello";
            string        inputSentence    = "hello world hello";
            RepeatCounter newRepeatCounter = new RepeatCounter(inputWord, inputSentence);

            //Act
            string resultWord     = newRepeatCounter.GetInputWord();
            string resultSentence = newRepeatCounter.GetInputSentence();

            Console.WriteLine(inputWord);
            Console.WriteLine(resultWord);
            Console.WriteLine(inputSentence);
            Console.WriteLine(resultSentence);

            //Assert
            Assert.AreEqual(inputWord, resultWord);
            Assert.AreEqual(inputSentence, resultSentence);

            // Assert.AreEqual(true, false);
        }