예제 #1
0
        public void SelectionChanged_EmptySelection_SelectionSynced()
        {
            DashboardButtonVM button = dashboard.ViewModels [0];

            dashboard.Selection.Replace(button.ToEnumerable());

            Assert.AreEqual(1, dashboardCanvas.Objects.OfType <DashboardButtonView> ().
                            Count(b => b.Selected == true));
        }
예제 #2
0
        public void DeleteButton_RemovedFromSelection()
        {
            DashboardButtonVM button = dashboard.ViewModels [0];

            dashboard.Selection.Replace(button.ToEnumerable());

            dashboard.ViewModels.Remove(button);

            Assert.IsEmpty(dashboard.Selection);
        }