Esempio n. 1
0
        public void GivenAValidComputedValueWhenValidatedThenTrueMustBeReturned(
            string computedValue, string value, string checkDigit)
        {
            var provider = new Mod97Radix10();

            Assert.True(provider.IsValid(computedValue));
        }
Esempio n. 2
0
        public void GivenAnBadFormatComputedValueWhenValidatedThenExceptionMustBeThrown(string computedValue)
        {
            var provider = new Mod97Radix10();

            Assert.ThrowsAny <ArgumentException>(() =>
            {
                provider.IsValid(computedValue);
            });
        }
Esempio n. 3
0
        public void GivenAnInvalidComputedValueWhenValidatedThenFalseMustBeReturned(string computedValue)
        {
            var provider = new Mod97Radix10();

            Assert.False(provider.IsValid(computedValue));
        }