public void InvalidCardNumber_NullValue_Failed() { //Arrange var validator = new InvalidCardNumber(null); //Act and Assert Assert.ThrowsException <ArgumentNullException>(() => validator.Process(), "Invalid value in Card Number parameter. The value cannot be null."); }
public void InvalidCardNumber_Failed() { //Arrange var validator = new InvalidCardNumber(InvalidCardNumber); //Act var result = validator.Process(); //Assert Assert.AreEqual(result.StatusCode, StatusCode.Failed); Assert.IsTrue(!string.IsNullOrEmpty(result.StatusDetail)); Assert.IsTrue(!string.IsNullOrEmpty(result.Status)); }