public void should_update_forced_transitive_install() { var request = new NugetPlanRequest { Dependency = new Dependency("FubuCore"), ForceUpdates = true, Operation = OperationType.Install, }; request.CopyFor(new Dependency("Bottles", "1.0.0.0", UpdateMode.Fixed)).ShouldUpdate(new Dependency("Bottles")).ShouldBeTrue(); }
public void copying_the_request_sets_the_parent() { var request = new NugetPlanRequest { Dependency = new Dependency("FubuCore"), ForceUpdates = true, Operation = OperationType.Update, }; request.CopyFor(new Dependency("Bottles")).Parent.ShouldEqual(request); }
public void copying_the_request_marks_as_transitive() { var request = new NugetPlanRequest { Dependency = new Dependency("FubuCore"), ForceUpdates = true, Operation = OperationType.Update, }; request.CopyFor(new Dependency("Bottles")).IsTransitive().ShouldBeTrue(); }
public void original_dependency_recursive() { var request = new NugetPlanRequest { Dependency = new Dependency("FubuCore"), ForceUpdates = false, Operation = OperationType.Install, }; request.CopyFor(new Dependency("Bottles")) .CopyFor(new Dependency("Something")) .Origin() .ShouldEqual(request.Dependency); }
public void should_not_force_update_for_the_original_dependency_when_batched() { var request = new NugetPlanRequest { Dependency = new Dependency("FubuCore"), ForceUpdates = false, Batched = true, Operation = OperationType.Install, }; request.CopyFor(new Dependency("Bottles")) .CopyFor(new Dependency("Something")) .ShouldForce(request.Dependency) .ShouldBeFalse(); }
public void copy_for_dependency() { var solution = new Solution(); var request = new NugetPlanRequest { Dependency = new Dependency("FubuCore"), ForceUpdates = true, Operation = OperationType.Update, Solution = solution }; var copied = request.CopyFor(new Dependency("Bottles")); copied.Dependency.Name.ShouldEqual("Bottles"); copied.ForceUpdates.ShouldEqual(request.ForceUpdates); copied.Operation.ShouldEqual(request.Operation); copied.Solution.ShouldEqual(request.Solution); }