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