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

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