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

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