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