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(); }
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(); }
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(); }
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(); }