public void ShouldHaveCorrectCardNumber() { const string cardNumber = "379354508162306"; var creditCardNumber = CreditCardNumber.For(cardNumber); creditCardNumber.Number.ShouldBe(cardNumber); }
public void ImplicitConversionToStringResultsInCorrectString() { const string cardNumber = "379354508162306"; var creditCardNumber = CreditCardNumber.For(cardNumber); string result = creditCardNumber; result.ShouldBe(cardNumber); }
public void ToStringReturnsCorrectFormat() { const string cardNumber = "379354508162306"; var creditCardNumber = CreditCardNumber.For(cardNumber); var result = creditCardNumber.ToString(); result.ShouldBe(cardNumber); }