Esempio n. 1
0
        public void ToByte()
        {
            var converter = ConverterFactory.Create <char, byte>();

            Assert.Equal(ManualConverter.CharToByte((char)0), converter((char)0));
            Assert.Equal(ManualConverter.CharToByte((char)1), converter((char)1));
            Assert.Equal(ManualConverter.CharToByte(Char.MinValue), converter(Char.MinValue));
            Assert.Equal(ManualConverter.CharToByte(Char.MaxValue), converter(Char.MaxValue));
        }