public void falls_back_to_default_constraint_for_float() { var dep = new Dependency("FubuCore", UpdateMode.Float); var solution = new Solution(); solution.AddDependency(dep); solution.ConstraintFor(dep).ShouldEqual(solution.NuspecSettings.Float); }
public void uses_explicit_dependency_constraint() { var explicitDep = new Dependency("FubuCore") { Constraint = "Current,NextMinor"}; var solution = new Solution(); solution.AddDependency(explicitDep); solution.ConstraintFor(explicitDep).ToString().ShouldEqual("Current,NextMinor"); }