Exemple #1
0
        public void ToUIntPtr()
        {
            var converter = ConverterFactory.Create <byte, UIntPtr>();

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