Exemple #1
0
        public void ContactFacultyConstractorBuildingEmptyTest()
        {
            // arrange

            string email    = "*****@*****.**";
            string building = "";

            // act

            ContactFaculty cf = new ContactFaculty(email, building);

            // assert

            Assert.Fail();
        }
Exemple #2
0
        public void ContactFacultyConstractorValidTest()
        {
            // arrange

            string email    = "*****@*****.**";
            string building = "East";

            // act

            ContactFaculty cf = new ContactFaculty(email, building);

            // assert

            Assert.IsNotNull(cf);
            Assert.AreEqual(email, cf.Email);
            Assert.AreEqual(building, cf.Building);
        }
Exemple #3
0
        public void FacultyConstructorValidTest()
        {
            // arrange

            string         fn       = "Good";
            string         ln       = "Morning";
            string         dp       = "Everyone";
            string         email    = "*****@*****.**";
            string         building = "East";
            ContactFaculty cf       = new ContactFaculty(email, building);


            // act

            Faculty f = new Faculty(fn, ln, dp, cf);

            // assert

            Assert.IsNotNull(f);
            Assert.AreEqual(fn, f.FirstName);
            Assert.AreEqual(ln, f.LastName);
            Assert.AreEqual(dp, f.Department);
            Assert.AreEqual(cf, f.ContactFaculty);
        }