public void InvalidName_TrowException(string FirstName) { try { Check.FirstName(FirstName); } catch (CustomException Exception) { Assert.AreEqual("Invalid First Name", Exception.Message); } }
public void FirstName_Test() { var Result = User.FirstName("Imran"); Assert.AreEqual(true, Result); }