Ejemplo n.º 1
0
 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" }));
 }
Ejemplo n.º 2
0
 public void TwoLineInputWithDependencyReturnsTwoJobs()
 {
     var sequence = new Sequence();
     Assert.That(sequence.GetSequence(new[] { "a =>b", "b =>" }), Is.EqualTo(new List<string> { "b","a" }));
 }
Ejemplo n.º 3
0
 public void SingleLineInputReturnsSingleJob()
 {
     var sequence = new Sequence();
     Assert.That(sequence.GetSequence(new[] { "a =>" }), Is.EqualTo(new List<string> {"a"}));
 }