Esempio n. 1
0
        public void ToInt16()
        {
            var converter = ConverterFactory.Create <decimal, short>();

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