Skip to content

Instantly share code, notes, and snippets.

@jmarnold
Created March 15, 2013 19:47
Show Gist options
  • Save jmarnold/5172582 to your computer and use it in GitHub Desktop.
Save jmarnold/5172582 to your computer and use it in GitHub Desktop.
[TestFixture]
public class installation_plan_for_package_with_existing_dependencies_with_floating_updates
{
private InstallationPlan thePlan;
[SetUp]
public void SetUp()
{
thePlan = InstallationScenario.For("FubuMVC.Json", scenario =>
{
scenario.AddRemoteDependency("Newtonsoft.Json", "4.5.9");
scenario.AddLocalDependency("Newtonsoft.Json", "4.5.1", UpdateMode.Fixed);
});
}
[Test]
public void no_packages_to_install()
{
thePlan.Installations.ShouldHaveCount(0);
}
[Test]
public void updates_the_local_dependency()
{
thePlan.Updates.ShouldHaveTheSameDependenciesAs("Newtonsoft.Json");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment