Пример #1
0
        public void TestManageCollectionsFilterIsNotSelected()
        {
            addExpandHeaderStep();

            AddStep("add collection", () => collectionManager.Collections.Add(new BeatmapCollection {
                Name = { Value = "1" }
            }));
            AddStep("select collection", () =>
            {
                InputManager.MoveMouseTo(getCollectionDropdownItems().ElementAt(1));
                InputManager.Click(MouseButton.Left);
            });

            addExpandHeaderStep();

            AddStep("click manage collections filter", () =>
            {
                InputManager.MoveMouseTo(getCollectionDropdownItems().Last());
                InputManager.Click(MouseButton.Left);
            });

            AddAssert("collection filter still selected", () => control.CreateCriteria().Collection?.Name.Value == "1");
        }
Пример #2
0
 private void filterRooms()
 {
     rooms.Filter(Filter.CreateCriteria());
     roomManager?.Filter(Filter.CreateCriteria());
 }