[TestMethod] //1 public void SetSplit_SetSplitWithParam_true() { Speak testSpeak = new Speak(); testSpeak.SetSplit("Hello"); Assert.AreEqual(char.Parse("H"), testSpeak.Split[0]); }
[TestMethod] //5 public void ReplaceLeet_ReplaceS_Z() { Speak testSpeak = new Speak(); testSpeak.SetSplit("s"); Assert.AreEqual(char.Parse("z"), testSpeak.Split[0]); }
public ActionResult Result(string word) { Speak leetSpeak = new Speak(); leetSpeak.SetSplit(word); return(View(leetSpeak)); }
[TestMethod] // 7 public void ReplaceLeet_ReplaceHeLLo_H3110() { Speak testSpeak = new Speak(); testSpeak.SetSplit("HeLLo"); string str = new String(testSpeak.Split); Assert.AreEqual("H3110", str); }