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

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