Exemplo n.º 1
0
 public void CashRebateTest()
 {
     CashContext cc = new CashContext(new CashRebate("0.8"));
     Assert.AreEqual(result * 0.8, cc.GetResult(money));
 }
Exemplo n.º 2
0
 public void CashReturnTest()
 {
     CashContext cc = new CashContext(new CashReturn("300","100"));
     Assert.AreEqual(200,cc.GetResult(300));
 }
Exemplo n.º 3
0
 public void CashNormalTest()
 {
     CashContext cc = new CashContext(new CashNormal());
     Assert.AreEqual(result,cc.GetResult(money));
 }