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