public void ToInt32() { var converter = ConverterFactory.Create <double, int>(); Assert.Equal(ManualConverter.DoubleToInt32(0d), converter(0d)); Assert.Equal(ManualConverter.DoubleToInt32(1d), converter(1d)); Assert.Equal(ManualConverter.DoubleToInt32(-1d), converter(-1d)); Assert.Equal(ManualConverter.DoubleToInt32(Double.MinValue), converter(Double.MinValue)); Assert.Equal(ManualConverter.DoubleToInt32(Double.MaxValue), converter(Double.MaxValue)); }