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

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