public void GivenAValidValueWhenComputedThenAValidComputedValueMustBeCreated( string computedValue, string value, string checkDigit) { var provider = new Mod661Radix26(); Assert.Equal(computedValue, provider.Compute(value)); }
public void GivenAnBadFormatComputedValueWhenComputedThenExceptionMustBeThrown(string computedValue) { var provider = new Mod661Radix26(); Assert.ThrowsAny <ArgumentException>(() => { provider.Compute(computedValue); }); }