Exemple #1
0
        public void ToUInt32()
        {
            var converter = ConverterFactory.Create <decimal, uint>();

            Assert.Equal(ManualConverter.DecimalToUInt32(0m), converter(0m));
            Assert.Equal(ManualConverter.DecimalToUInt32(1m), converter(1m));
            //Assert.Equal(ManualConverter.DecimalToUInt32(-1m), converter(-1m));
            //Assert.Equal(ManualConverter.DecimalToUInt32(Decimal.MinValue), converter(Decimal.MinValue));
            //Assert.Equal(ManualConverter.DecimalToUInt32(Decimal.MaxValue), converter(Decimal.MaxValue));
        }