public void ToDecimal() { var converter = ConverterFactory.Create <short, decimal>(); Assert.Equal(ManualConverter.Int16ToDecimal(0), converter(0)); Assert.Equal(ManualConverter.Int16ToDecimal(1), converter(1)); Assert.Equal(ManualConverter.Int16ToDecimal(-1), converter(-1)); Assert.Equal(ManualConverter.Int16ToDecimal(Int16.MinValue), converter(Int16.MinValue)); Assert.Equal(ManualConverter.Int16ToDecimal(Int16.MaxValue), converter(Int16.MaxValue)); }