public void InvalidLastName_TrowException(string LastName) { try { Check.LastName(LastName); } catch (CustomException Exception) { Assert.AreEqual("Invalid LastName", Exception.Message); } }
public void LastName_Test() { var Result = User.LastName("Imran"); Assert.AreEqual(true, Result); }