Example #1
0
 public void TestThreeishNotProcceded()
 {
     Assert.IsFalse(TreeishManager.TreeishAlreadyProcessed(new Dep("", "treeish"), new List <Dep>
     {
         new Dep("", "A"),
         new Dep("", "B")
     }));
 }
Example #2
0
 public void TestNotThrowsWithoutConflict()
 {
     Assert.DoesNotThrow(() => TreeishManager.ThrowOnTreeishConflict(new DepWithParent(new Dep("", "treeish"), "A"), new List <DepWithParent>
     {
         new DepWithParent(new Dep(""), "B"),
         new DepWithParent(new Dep("", "treeish"), "C")
     }));
 }
Example #3
0
 public void TestThrowsOnTreeishConflict()
 {
     Assert.Throws <TreeishConflictException>(() => TreeishManager.ThrowOnTreeishConflict(
                                                  new DepWithParent(new Dep("", "treeish1"), "A"), new List <DepWithParent>
     {
         new DepWithParent(new Dep("", "treeish1"), "B"),
         new DepWithParent(new Dep("", "treeish2"), "C")
     }));
 }
Example #4
0
 public void TestTreeishProceeded()
 {
     Assert.IsTrue(TreeishManager.TreeishAlreadyProcessed(new Dep("", "treeish"), new List <Dep>
     {
         new Dep("", "A"),
         new Dep("", "treeish"),
         new Dep("", "C")
     }));
 }
 public TestTreeishManager()
 {
     treeishManager = new TreeishManager();
 }