public void ThreeLinesWithDependenciesReturnsThreeJobsInOrder() { var sequence = new Sequence(); Assert.That(sequence.GetSequence(new[] { "a =>c", "b =>", "c =>b" }), Is.EqualTo(new List<string> { "b", "c", "a" })); }
public void TwoLineInputWithDependencyReturnsTwoJobs() { var sequence = new Sequence(); Assert.That(sequence.GetSequence(new[] { "a =>b", "b =>" }), Is.EqualTo(new List<string> { "b","a" })); }
public void SingleLineInputReturnsSingleJob() { var sequence = new Sequence(); Assert.That(sequence.GetSequence(new[] { "a =>" }), Is.EqualTo(new List<string> {"a"})); }