Пример #1
0
        public void ToInt32()
        {
            var converter = ConverterFactory.Create <char, int>();

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