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