public void makeOutWord() { assertEquals("Input: makeOutWord(\"<<>>\", \"Yay\")", "<<Yay>>", exercises.MakeOutWord("<<>>", "Yay")); assertEquals("Input: makeOutWord(\"<<>>\", \"WooHoo\")", "<<WooHoo>>", exercises.MakeOutWord("<<>>", "WooHoo")); assertEquals("Input: makeOutWord(\"[[]]\", \"word\")", "[[word]]", exercises.MakeOutWord("[[]]", "word")); assertEquals("Input: makeOutWord(\"HHoo\", \"Hello\")", "HHHellooo", exercises.MakeOutWord("HHoo", "Hello")); assertEquals("Input: makeOutWord(\"abyz\", \"YAY\")", "abYAYyz", exercises.MakeOutWord("abyz", "YAY")); }
public void MakeOutWordTest() { StringExercises testClass = new StringExercises(); string result = testClass.MakeOutWord("<<>>", "Yay"); Assert.AreEqual("<<Yay>>", result); result = testClass.MakeOutWord("<<>>", "WooHoo"); Assert.AreEqual("<<WooHoo>>", result); result = testClass.MakeOutWord("[[]]", "word"); Assert.AreEqual("[[word]]", result); }
public void MakeOutWordTest() { StringExercises testClass = new StringExercises(); string result = testClass.MakeOutWord("<<>>", "Yay"); Assert.AreEqual("<<Yay>>", result); }
public void TestMakeOutWordWithNull() { //arrange StringExercises stringExercises = new StringExercises(); //act string result = stringExercises.MakeOutWord(null, null); //assert Assert.IsNull(result); }
public void TestMakeOutWord() { //arrange StringExercises strExer = new StringExercises(); //act string result = strExer.MakeOutWord("<<>>", "Bye"); //assert Assert.AreEqual("<<Bye>>", result); }
public void TestMakeOutWord() { //makeOutWord("<<>>", "Yay") → "<<Yay>>" //makeOutWord("<<>>", "WooHoo") → "<<WooHoo>>" //makeOutWord("[[]]", "word") → "[[word]]" //Arrange StringExercises stringExercises = new StringExercises(); //Act string result = stringExercises.MakeOutWord("<<>>", "Yay"); //Assert Assert.AreEqual("<<Yay>>", result, "d'oh"); }