public void Should_return_Rounded_Negative_1000_for_Decimal_1090_with_99_Cents() { decimal testInputs = -1090.99m; Int32 testResult = IntRounding.NearRoundUp(testInputs, TEST_NEAREST_NUMBER); Assert.AreEqual(TEST_NEG_RESULT_NUMBER, testResult); }
public void Should_return_Rounded_1000_for_Decimal_1090_with_60_Cents() { decimal testInputs = 1090.60m; Int32 testResult = IntRounding.NearRoundUp(testInputs, TEST_NEAREST_NUMBER); Assert.AreEqual(TEST_POS_RESULT_NUMBER, testResult); }