コード例 #1
0
 public void ClearConflicts_Expects_AllItemsHaveNoConflicts()
 {
     // base case
     Init(false, true);
     _vm.ExplorerItemModels[0].IsOverwrite                         = true;
     _vm.ExplorerItemModels[0].Children[0].IsOverwrite             = true;
     _vm.ExplorerItemModels[0].IsOverwrite                         = true;
     _vm.ExplorerItemModels[0].Children[0].Children[0].IsOverwrite = true;
     _vm.ClearConflictingNodesNodes();
     Assert.AreEqual(false, _vm.ExplorerItemModels[0].IsOverwrite);
     Assert.AreEqual(false, _vm.ExplorerItemModels[0].Children[0].IsOverwrite);
     Assert.AreEqual(false, _vm.ExplorerItemModels[0].Children[0].Children[0].IsOverwrite);
 }