Beispiel #1
0
        public void ToInt32()
        {
            var converter = ConverterFactory.Create <byte, int>();

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