Exemplo n.º 1
0
        public void ProfileFormTest()
        {
            int         aId              = 1;
            ProfileForm pF               = new ProfileForm(aId, false);
            bool        editVisibility   = pF.GetEditButtonVisibility();
            bool        deleteVisibility = pF.GetDeleteButtonVisibility();
            int         actualId         = pF.GetAcId();

            Assert.AreEqual(aId, actualId);
            Assert.AreEqual(false, editVisibility);
            Assert.AreEqual(false, deleteVisibility);
        }
Exemplo n.º 2
0
        public void ShowProfileFormTest()
        {
            int      aId = 1;
            MainForm mF  = new MainForm();

            mF.SetIsAdminLoggedIn(true);
            ProfileForm pF               = mF.ShowProfileForm(aId);
            bool        editVisibility   = pF.GetEditButtonVisibility();
            bool        deleteVisibility = pF.GetDeleteButtonVisibility();
            int         actualId         = pF.GetAcId();

            Assert.AreEqual(aId, actualId);
            Assert.AreEqual(true, editVisibility);
            Assert.AreEqual(true, deleteVisibility);
        }