anchor.diff:  
   [<Test>]
   let ``should resolve simple config3``() = 
  -    let cfg = DependenciesFile.FromCode(config3)
  -    let resolved = ResolveWithGraph(cfg,noSha1,VersionsFromGraphAsSeq graph, PackageDetailsFromGraph graph).[Constants.MainDependencyGroup].ResolvedPackages.GetModelOrFail()
  +    let resolved =
  +        DependenciesFile.FromCode(config3)
  +        |> resolve graph UpdateMode.UpdateAll
       getVersion resolved.[PackageName "Castle.Windsor"] |> shouldEqual "3.3.0"
       getVersion resolved.[PackageName "Nancy.Bootstrappers.Windsor"] |> shouldEqual "0.23"
   
  
positive.code: nuget Castle.Windsor-NLog !~> 3.2
  """
  
  let resolveWithUpdateMode graph updateMode (cfg : DependenciesFile) =
      let groups = [Constants.MainDependencyGroup, None ] |> Map.ofSeq
      cfg.Resolve(true,noSha1,VersionsFromGraphAsSeq graph,PackageDetailsFromGraph graph,groups,updateMode).[Constants.MainDependencyGroup].ResolvedPackages.GetModelOrFail()
  
  [<Test>]
  let ``should update to lastest when updating all``() = 
      let resolved =
          DependenciesFile.FromCode(config6)
          |> resolveWithUpdateMode graph2 UpdateMode.UpdateAll
      getVersion resolved.[PackageName "Castle.Windsor-NLog"] |> shouldEqual "3.3.0"
      getVersion resolved.[PackageName "Castle.Core-NLog"] |> shouldEqual "3.3.1"
      getVersion resolved.[PackageName "Castle.Core"] |> shouldEqual "3.3.1"
  
negative.code: 
  [<Test>]
  let ``should resolve simple config2``() = 
      let resolved =
          DependenciesFile.FromCode(config2)
          |> resolve graph UpdateMode.UpdateAll
      getVersion resolved.[PackageName "Castle.Windsor"] |> shouldEqual "3.3.0"
      getVersion resolved.[PackageName "Nancy.Bootstrappers.Windsor"] |> shouldEqual "0.23"
  
  