Exemplo n.º 1
0
 public void TestJoblistWithCircularDependency()
 {
     var testresult = new OrderesSequence("a=> \r\n b=>c \r\n c=>f \r\n d=>a \r\n e=> \r\n f=>b \r\n");
 }
Exemplo n.º 2
0
 public void TestJoblistWithSelfRefrence()
 {
     var testresult = new OrderesSequence("a=> \r\n b=> \r\n c=>c \r\n");
 }
Exemplo n.º 3
0
        public void TestJoblistComplexWithMultiDependency()
        {
            var testresult = new OrderesSequence("a=> \r\n b=>c \r\n c=>a \r\n d=>a \r\n e=>b \r\n f=>c \r\n");

            Assert.AreEqual(expected: "acbdef", actual: testresult.JobsList, "List with only one job Worked as expected");
        }
Exemplo n.º 4
0
        public void TestJoblistWithBasicDependencies()
        {
            var testresult = new OrderesSequence("a=> \r\n b=>c \r\n c=> \r\n");

            Assert.AreEqual(expected: "acb", actual: testresult.JobsList, "List with only one job Worked as expected");
        }
Exemplo n.º 5
0
        public void TestOneJob()
        {
            var testresult = new OrderesSequence("a=>");

            Assert.AreEqual(expected: "a", actual: testresult.JobsList, "List with only one job Worked as expected");
        }
Exemplo n.º 6
0
        public void TestEmptyJobList()
        {
            var testresult = new OrderesSequence("");

            Assert.AreEqual(expected: "", actual: testresult.JobsList, "Empty Orders Worked as expected");
        }