public void GivenAValidComputedValueWhenValidatedThenTrueMustBeReturned( string computedValue, string value, string checkDigit) { var provider = new Mod11Radix2(); Assert.True(provider.IsValid(computedValue)); }
public void GivenAnBadFormatComputedValueWhenValidatedThenExceptionMustBeThrown(string computedValue) { var provider = new Mod11Radix2(); Assert.ThrowsAny <ArgumentException>(() => { provider.IsValid(computedValue); }); }
public void GivenAnInvalidComputedValueWhenValidatedThenFalseMustBeReturned(string computedValue) { var provider = new Mod11Radix2(); Assert.False(provider.IsValid(computedValue)); }