public void TestThreeishNotProcceded() { Assert.IsFalse(TreeishManager.TreeishAlreadyProcessed(new Dep("", "treeish"), new List <Dep> { new Dep("", "A"), new Dep("", "B") })); }
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") })); }
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") })); }
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(); }