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

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