コード例 #1
0
 public void ValidateInputTestWrong()
 {
     int userInput = 30;
     TimesheetGenerator t = new TimesheetGenerator();
     bool returned = t.ValidateInput(userInput);
     Assert.AreEqual(false, returned);
 }
コード例 #2
0
 public void ValidateInputTest()
 {
     TimesheetGenerator ts = new TimesheetGenerator();
     bool expected = false;
     bool actual1 = ts.ValidateInput(80);
     bool actual2 = ts.ValidateInput(-3);
     Assert.AreEqual(expected, actual1);
     Assert.AreEqual(expected, actual2);
 }
コード例 #3
0
 public void ValidateInputTest1()
 {
     int userInput = 24;
     TimesheetGenerator t = new TimesheetGenerator();
        bool returned =  t.ValidateInput(userInput);
     Assert.AreEqual(true, returned);
 }