public void TestCyclicDependency() { string testexample = "a=>" + "\r\n" + "b=>c" + "\r\n" + "c=>f" + "\r\n" + "d=>a" + "\r\n" + "e=>" + "\r\n" + "f=>b"; string expectedresult = "Cyclic Dependency."; IStringManipulations s = new StringManipulations(); Assert.AreEqual(s.JobDependencey(testexample), expectedresult); }
public void TestSelfDependency() { string testexample = "a=>" + "\r\n" + "b=>" + "\r\n" + "c=>c"; string expectedresult = "Jobs cannot Depend on themselves."; IStringManipulations s = new StringManipulations(); Assert.AreEqual(s.JobDependencey(testexample), expectedresult); }