public void MiddleTwo(string str, string expected) { //arrange Strings obj = new Strings(); //act string actual = obj.MiddleTwo(str); //assert Assert.AreEqual(expected, actual); }
public void MiddleTwo(string str, string expectedResult) { //arrange : get your target class Strings test = new Strings(); //Act : call the method string actual = test.MiddleTwo(str); //Assert : assess target Assert.AreEqual(expectedResult, actual); }
public void MiddleTwo(string a, string expResult) { Strings obj = new Strings(); string actual = obj.MiddleTwo(a); Assert.AreEqual(expResult, actual); }
public void MiddleTwo(string str, string expected) { Strings obj = new Strings(); string actual = obj.MiddleTwo(str); Assert.AreEqual(expected, actual); }