Пример #1
0
        public void ToUIntPtr()
        {
            var converter = ConverterFactory.Create <double, UIntPtr>();

            Assert.Equal(ManualConverter.DoubleToUIntPtr(0d), converter(0d));
            Assert.Equal(ManualConverter.DoubleToUIntPtr(1d), converter(1d));
            Assert.Equal(ManualConverter.DoubleToUIntPtr(-1d), converter(-1d));
            Assert.Equal(ManualConverter.DoubleToUIntPtr(Double.MinValue), converter(Double.MinValue));
            Assert.Equal(ManualConverter.DoubleToUIntPtr(Double.MaxValue), converter(Double.MaxValue));
        }