public void InvalidMobileNo_TrowException(string MobileNo) { try { Check.MobileNumber(MobileNo); } catch (CustomException Exception) { Assert.AreEqual("Invalid Mobile No", Exception.Message); } }
public void Mobile_Test() { var Result = User.MobileNumber("91 9236789098"); Assert.AreEqual(true, Result); }