Exemplo n.º 1
0
 public void Test1_CreateAndDeleteComputer()
 {
     Computers computers = new Computers(selenium);
     computers.Clean(secretIP);
     computers.Add(secretIP);
     Assert.IsTrue(computers.IsPresented(secretIP));
     computers.Delete(secretIP);
     Assert.IsFalse(computers.IsPresented(secretIP));
     computers.Logout();
 }
Exemplo n.º 2
0
        public void Test1_CreateAndDeleteComputer()
        {
            Computers computers = new Computers(selenium);

            computers.Clean(secretIP);
            computers.Add(secretIP);
            Assert.IsTrue(computers.IsPresented(secretIP));
            computers.Delete(secretIP);
            Assert.IsFalse(computers.IsPresented(secretIP));
            computers.Logout();
        }
Exemplo n.º 3
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();
 }
Exemplo n.º 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();
        }
Exemplo n.º 5
0
        public void Test4_NoComputerDuplicates()
        {
            Computers computers = new Computers(selenium);

            computers.Clean(secretIP);
            computers.Add(secretIP);
            computers.GoBack();
            computers.Add(secretIP);
            computers.Delete(secretIP);
            Assert.IsFalse(computers.IsPresented(secretIP));
            computers.Logout();
        }
Exemplo n.º 6
0
        public void Test4_NoComputerDuplicates()
        {
            var computers = new Computers(this.selenium);

            computers.Clean(this.secretIP);

            computers.Add(this.secretIP);

            computers.Add(this.secretIP);

            computers.Delete(this.secretIP);

            Assert.IsFalse(computers.IsPresented(this.secretIP));

            computers.Logout();
        }
Exemplo n.º 7
0
 public void Test4_NoComputerDuplicates()
 {
     Computers computers = new Computers(selenium);
     computers.Clean(secretIP);
     computers.Add(secretIP);
     computers.GoBack();
     computers.Add(secretIP);
     computers.Delete(secretIP);
     Assert.IsFalse(computers.IsPresented(secretIP));
     computers.Logout();
 }
Exemplo n.º 8
0
        public void Test4_NoComputerDuplicates()
        {
            var computers = new Computers(this.selenium);

            computers.Clean(this.secretIP);

            computers.Add(this.secretIP);

            computers.Add(this.secretIP);

            computers.Delete(this.secretIP);

            Assert.IsFalse(computers.IsPresented(this.secretIP));

            computers.Logout();
        }