public void Test2_BanUnbanComputer()
 {
     Computers computers = new Computers(selenium);
     computers.Clean(secretIP);
     computers.Add(secretIP);
     Assert.IsFalse(computers.IsBanned(secretIP));
     computers.Ban(secretIP);
     Assert.IsTrue(computers.IsBanned(secretIP));
     computers.Unban(secretIP);
     Assert.IsFalse(computers.IsBanned(secretIP));
     computers.Delete(secretIP);
     computers.Logout();
 }
Beispiel #2
0
        public void Test2_BanUnbanComputer()
        {
            Computers computers = new Computers(selenium);

            computers.Clean(secretIP);
            computers.Add(secretIP);
            Assert.IsFalse(computers.IsBanned(secretIP));
            computers.Ban(secretIP);
            Assert.IsTrue(computers.IsBanned(secretIP));
            computers.Unban(secretIP);
            Assert.IsFalse(computers.IsBanned(secretIP));
            computers.Delete(secretIP);
            computers.Logout();
        }
 public void Test3_EditComputer()
 {
     Computers computers = new Computers(selenium);
     computers.Clean(secretIP);
     computers.Add(secretIP);
     Assert.IsFalse(computers.IsPresented(secretUser));
     computers.Edit(secretIP, false, true, secretUser);
     Assert.IsTrue(computers.IsPresented(secretUser));
     Assert.IsTrue(computers.IsBanned(secretIP));
     computers.Delete(secretIP);
     computers.Logout();
 }
Beispiel #4
0
        public void Test3_EditComputer()
        {
            Computers computers = new Computers(selenium);

            computers.Clean(secretIP);
            computers.Add(secretIP);
            Assert.IsFalse(computers.IsPresented(secretUser));
            computers.Edit(secretIP, false, true, secretUser);
            Assert.IsTrue(computers.IsPresented(secretUser));
            Assert.IsTrue(computers.IsBanned(secretIP));
            computers.Delete(secretIP);
            computers.Logout();
        }