Example #1
0
 public void performTimeEventTest()
 {
     testList.Add(0);
     testNode = new Node(1, 1, 2, 2, testList);
     testNode.insertCustomer();
     testNode.insertCustomer();
     testNode.performTimeEvent();
     testNode.performTimeEvent();
     Assert.AreEqual(1, testNode.getNumberOfCheckouts());
 }
Example #2
0
 public void insertCustomerTest()
 {
     testList.Add(0);
     testNode = new Node(1, 1, 2, 2, testList);
     Assert.AreEqual(0, testNode.customerCount);
     testNode.insertCustomer();
     Assert.AreEqual(1, testNode.customerCount);
     testNode.insertCustomer();
     testNode.insertCustomer();
     Assert.AreEqual(3, testNode.customerCount);
     testNode.insertCustomer();
     Assert.AreEqual(3, testNode.customerCount);
 }