public void Should_return_Rounded_Negative_1000_for_Decimal_with_99_Cents() { decimal testInputs = -1000.99m; Int32 testResult = IntRounding.RoundDown(testInputs); Assert.AreEqual(TEST_NEG_RESULT_NUMBER, testResult); }
public void Should_return_Rounded_1000_for_Decimal_with_60_Cents() { decimal testInputs = 1000.60m; Int32 testResult = IntRounding.RoundDown(testInputs); Assert.AreEqual(TEST_POS_RESULT_NUMBER, testResult); }
public static Int32 IntRoundDown(decimal valueDec) { return(IntRounding.RoundDown(valueDec)); }