Beispiel #1
0
        public void ToInt64()
        {
            var converter = ConverterFactory.Create <decimal, long>();

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