Beispiel #1
0
        public void AddEmployeeTest()
        {
            Company c = new Company();
            Employee e = new Employee("John", "Doe");

            c.AddEmployee(e);
            Assert.IsTrue(c.GetNumberOfEmployees() == 1);
        }
Beispiel #2
0
        public void GetEmployeePositionTest()
        {
            const string POSITION = "Supervisor";
            Company c = new Company();
            Employee e = new Employee("John", "Doe");
            e.Position = POSITION;

             c.AddEmployee(e);

            Assert.AreEqual(POSITION, c.GetEmployeePosition(e));
        }
Beispiel #3
0
 public void CompanyConstructorTest()
 {
     Company c = new Company();
     Assert.IsNotNull(c);
 }