示例#1
0
 public void NavigationViewModel_Filter_GivenFunction_ShouldFilter()
 {
     //------------Setup for test--------------------------
     Init(false, true);
     //------------Preconditions---------------------------
     Assert.AreEqual(4, _vm.ExplorerItemModels[0].ChildrenCount);
     //------------Execute Test---------------------------
     _vm.Filter(model => model.ResourceType == Common.Interfaces.Data.ResourceType.WorkflowService);
     //------------Assert Results-------------------------
     Assert.AreEqual(2, _vm.ExplorerItemModels[0].ChildrenCount);
 }