public void HasLessThanThreeDecimalPlaces_ZeroPointOneOneOne_ReturnsFalse_AsDoSubsequentValuesAfterDivindingBySevenInALoopOfTen() { decimal input = 0.111m; decimal divisor = 7; CashTransactionFileIOService ctfios = new CashTransactionFileIOService(); for (int i = 0; i < 10; ++i) { if (i > 0) { input /= divisor; } Assert.IsFalse(ctfios.HasLessThanThreeDecimalPlaces(input)); } }
public void HasLessThanThreeDecimalPlaces_OnePointSixNine_ReturnsTrue() { CashTransactionFileIOService ctfios = new CashTransactionFileIOService(); Assert.IsTrue(ctfios.HasLessThanThreeDecimalPlaces(1.69m)); }
public void HasLessThanThreeDecimalPlaces_OnePointFourFiveThree_ReturnsFalse() { CashTransactionFileIOService ctfios = new CashTransactionFileIOService(); Assert.IsFalse(ctfios.HasLessThanThreeDecimalPlaces(1.453m)); }
public void HasLessThanThreeDecimalPlaces_Zero_ReturnsTrue() { CashTransactionFileIOService ctfios = new CashTransactionFileIOService(); Assert.IsTrue(ctfios.HasLessThanThreeDecimalPlaces(0m)); }