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