Ejemplo n.º 1
0
 public void Wont_runt_same_target_multiple_times()
 {
     var targetsBuilt = new List<string>();
     var project = new DoubleBuildBug();
     project.RunHandler += target =>  targetsBuilt.Add(target.Name);
     project.Run("Test");
     Assert.That(targetsBuilt, Is.EquivalentTo(new[]{ "Test", "Core", "Build" }));
 }
Ejemplo n.º 2
0
 public void Should_not_build_target_twice_due_to_case_sensitivities_issues()
 {
     var targetsBuilt = new List<string>();
     var project = new DoubleBuildBug();
     project.RunHandler += target => targetsBuilt.Add(target.Name);
     project.Run("test");
     Assert.That(targetsBuilt, Is.EquivalentTo(new[] { "Test", "Core", "Build" }));
 }