public void SortTree_should_send_a_SortTreeEvent() { const SortOrder sortOrder = SortOrder.Ascending; controller.SortTree(sortOrder); eventAggregator.AssertWasCalled(ea => ea.Send(Arg.Is(controller), Arg <SortTreeEvent> .Matches(ste => ste.SortOrder == sortOrder))); }
private void SortTree(SortOrder sortOrder) { sortAscToolStripButton.Checked = (sortOrder == SortOrder.Ascending); sortDescToolStripButton.Checked = (sortOrder == SortOrder.Descending); testExplorerController.SortTree(sortOrder); }