コード例 #1
0
        public void ToInt16()
        {
            var converter = ConverterFactory.Create <byte, short>();

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