Exemplo n.º 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();
        }
Exemplo n.º 2
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();
        }
Exemplo n.º 3
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();
 }
Exemplo n.º 4
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();
 }