Exemplo n.º 1
0
        public void GivenAValidValueWhenComputedThenAValidComputedValueMustBeCreated(
            string computedValue, string value, string checkDigit)
        {
            var provider = new Mod1271Radix36();

            Assert.Equal(computedValue, provider.Compute(value));
        }
Exemplo n.º 2
0
        public void GivenAnBadFormatComputedValueWhenComputedThenExceptionMustBeThrown(string computedValue)
        {
            var provider = new Mod1271Radix36();

            Assert.ThrowsAny <ArgumentException>(() =>
            {
                provider.Compute(computedValue);
            });
        }