Пример #1
0
 public void Test6_BanRoom()
 {
     Rooms rooms = new Rooms(selenium);
     rooms.Add(secretRoom, false);
     Assert.IsFalse(rooms.IsAllowed(secretRoom));
     rooms.Unban(secretRoom);
     Assert.IsTrue(rooms.IsAllowed(secretRoom));
     rooms.Ban(secretRoom);
     Assert.IsFalse(rooms.IsAllowed(secretRoom));
     rooms.Remove(secretRoom);
     rooms.Logout();
 }
Пример #2
0
 public void Test7_NoRoomsDuplicates()
 {
     Rooms rooms = new Rooms(selenium);
     rooms.Add(secretRoom, true);
     rooms.GoBack();
     rooms.Add(secretRoom, false);
     rooms.Remove(secretRoom);
     Assert.IsFalse(rooms.IsPresented(secretRoom));
     rooms.Logout();
 }
Пример #3
0
 public void Test5_AddAndDeleteRoom()
 {
     Rooms rooms = new Rooms(selenium);
     rooms.Add(secretRoom, true);
     Assert.IsTrue(rooms.IsPresented(secretRoom));
     Assert.IsTrue(rooms.IsAllowed(secretRoom));
     rooms.Remove(secretRoom);
     Assert.IsFalse(rooms.IsPresented(secretRoom));
     rooms.Logout();
 }