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

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