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

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