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)); }
public void DeleteButton_RemovedFromSelection() { DashboardButtonVM button = dashboard.ViewModels [0]; dashboard.Selection.Replace(button.ToEnumerable()); dashboard.ViewModels.Remove(button); Assert.IsEmpty(dashboard.Selection); }