Exemple #1
0
        public void ToDecimal()
        {
            var converter = ConverterFactory.Create <byte, decimal>();

            Assert.Equal(ManualConverter.ByteToDecimal(0), converter(0));
            Assert.Equal(ManualConverter.ByteToDecimal(1), converter(1));
            Assert.Equal(ManualConverter.ByteToDecimal(Byte.MinValue), converter(Byte.MinValue));
            Assert.Equal(ManualConverter.ByteToDecimal(Byte.MaxValue), converter(Byte.MaxValue));
        }