public void ToDecimal() { var converter = ConverterFactory.Create <double, decimal>(); Assert.Equal(ManualConverter.DoubleToDecimal(0d), converter(0d)); Assert.Equal(ManualConverter.DoubleToDecimal(1d), converter(1d)); Assert.Equal(ManualConverter.DoubleToDecimal(-1d), converter(-1d)); //Assert.Equal(ManualConverter.DoubleToDecimal(Double.MinValue), converter(Double.MinValue)); //Assert.Equal(ManualConverter.DoubleToDecimal(Double.MaxValue), converter(Double.MaxValue)); }