public void ToUIntPtr() { var converter = ConverterFactory.Create <decimal, UIntPtr>(); Assert.Equal(ManualConverter.DecimalToUIntPtr(0m), converter(0m)); Assert.Equal(ManualConverter.DecimalToUIntPtr(1m), converter(1m)); //Assert.Equal(ManualConverter.DecimalToUIntPtr(-1m), converter(-1m)); //Assert.Equal(ManualConverter.DecimalToUIntPtr(Decimal.MinValue), converter(Decimal.MinValue)); //Assert.Equal(ManualConverter.DecimalToUIntPtr(Decimal.MaxValue), converter(Decimal.MaxValue)); }