Exemplo n.º 1
0
 public void TestLevelManagerLevelCEO()
 {
     var OurTest = new functionsLab4.ExpenseLogic();
     int answer = OurTest.ManagerOne (5000, "Funyuns");
     Assert.Equal (4, answer);
 }
Exemplo n.º 2
0
 public void TestLevelManagerLevelDirectorDesc()
 {
     var OurTest = new functionsLab4.ExpenseLogic();//Namespace for test is declared followed by test class
     int answer = OurTest.ManagerOne(550, "Clothes");//the test instance and the function is passed with parameters
     Assert.Equal(3, answer);
 }
Exemplo n.º 3
0
 public void TestForAmountUnder250()
 {
     var OurTest = new functionsLab4.ExpenseLogic();
     int answer = OurTest.ManagerOne(200, "Booze");
     Assert.Equal(1, answer);
 }
Exemplo n.º 4
0
 public void ReturnAsMangerOneRejection_AmountPass()
 {
     var OurTest = new functionsLab4.ExpenseLogic();
     int answer = OurTest.ManagerOne(260, "Booze");
     Assert.Equal(2, answer);
 }
Exemplo n.º 5
0
 public void ReturnAsMangerOneApproval_descTownCars()
 {
     var OurTest = new functionsLab4.ExpenseLogic();
     int answer = OurTest.ManagerOne(200, "towncars");
     Assert.Equal(0, answer);
 }
Exemplo n.º 6
0
 public void ReturnAsMangerOneApproval_descEntertainment()
 {
     var OurTest = new functionsLab4.ExpenseLogic();
     int answer = OurTest.ManagerOne(200, "entertainment");
     Assert.Equal(0, answer);
 }
Exemplo n.º 7
0
 public void ReturnAsMangerOneApproval()
 {
     var OurTest = new functionsLab4.ExpenseLogic();
     int answer = OurTest.ManagerOne(200, "Booze");
     Assert.Equal(1, answer);
 }