Exemple #1
0
        public void Bonus10Percent_SmallerThanZero_NotZero()
        {
            PaymentBonus paymentBonus = new PaymentBonus();

            float result = paymentBonus.Bonus20Percent(-1);

            Assert.AreNotEqual(1, result);
        }
Exemple #2
0
        public void Bonus20Percent_LargeThan10_ReturnNotTwo()
        {
            PaymentBonus paymentBonus = new PaymentBonus();

            float result = paymentBonus.Bonus20Percent(20);

            Assert.AreNotEqual(2, result);
        }
Exemple #3
0
        public void Bonus20Percent_ZeroParameter_NotZero()
        {
            PaymentBonus paymentBonus = new PaymentBonus();

            float result = paymentBonus.Bonus20Percent(0);

            Assert.AreNotEqual(1, result);
        }
Exemple #4
0
        public void Bonus20Percent_ValidParameter_ReturnTwo()
        {
            PaymentBonus paymentBonus = new PaymentBonus();

            float result = paymentBonus.Bonus20Percent(10);

            Assert.AreEqual(2, result);
        }