Beispiel #1
0
        public void TestIsActiveForAnInactiveManager()
        {
            Lab2.Manager manager = new Lab2.Manager(1, "Angel", "Ardeleanu", new System.DateTime(2009, 6, 4), new System.DateTime(2012, 6, 4), 2);

            Assert.AreEqual(manager.IsActive(), false, "This should be equal");
        }
Beispiel #2
0
 public void SalutationTestGivenInvalidInput()
 {
     Lab2.Manager manager = new Lab2.Manager(1, "Angel", "Ardeleanu", new System.DateTime(2010, 4, 6), new System.DateTime(2015, 4, 6), 2);
     Assert.AreNotEqual(manager.Salutation(), "Hello manager: " + "Angel" + "" + "Ardeleanu", "Salutation method fail for invalid!");
 }
Beispiel #3
0
        public void TestGetFullNameForInvalidOutput()
        {
            Lab2.Manager manager = new Lab2.Manager(1, "Angel", "Ardeleanu", new System.DateTime(2010, 4, 6), new System.DateTime(2015, 4, 6), 2);

            Assert.AreNotEqual(manager.GetFullName(), "Ardeleanu Angel", "This shouldn't be equal");
        }
Beispiel #4
0
 public void SetHead(Manager manager)
 {
     Head = manager;
 }