public void ToInt32() { var converter = ConverterFactory.Create <decimal, int>(); Assert.Equal(ManualConverter.DecimalToInt32(0m), converter(0m)); Assert.Equal(ManualConverter.DecimalToInt32(1m), converter(1m)); Assert.Equal(ManualConverter.DecimalToInt32(-1m), converter(-1m)); //Assert.Equal(ManualConverter.DecimalToInt32(Decimal.MinValue), converter(Decimal.MinValue)); //Assert.Equal(ManualConverter.DecimalToInt32(Decimal.MaxValue), converter(Decimal.MaxValue)); }