public void GetsAndSets_AllGettersAndSetters_String() { //arrange RepeatCounter newRepeatCounter = new RepeatCounter("the", "the girl likes the food"); //action string resultWord = newRepeatCounter.GetInputWord(); string resultString = newRepeatCounter.GetInputString(); //assert Assert.AreEqual("the", resultWord); Assert.AreEqual("the girl likes the food", resultString); }
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); }