public void Should_return_Rounded_Negative_1001_for_Decimal_with_99_Cents() { decimal testInputs = -1000.99m; Int32 testResult = IntRounding.RoundUp(testInputs); Assert.AreEqual(TEST_NEG_RESULT_NUMBER, testResult); }
public void Should_return_Rounded_1001_for_Decimal_with_60_Cents() { decimal testInputs = 1000.60m; Int32 testResult = IntRounding.RoundUp(testInputs); Assert.AreEqual(TEST_POS_RESULT_NUMBER, testResult); }
public static Int32 IntRoundUp(decimal valueDec) { return(IntRounding.RoundUp(valueDec)); }