Exemplo n.º 1
0
        public void ToIntPtr()
        {
            var converter = ConverterFactory.Create <char, IntPtr>();

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