public void GetPackagesPathDefault()
 {
     var processor = new Processor
         {
             Logger = new Mock<BuildLogger>().Object,
             SolutionDir = Environment.CurrentDirectory
         };
     processor.FindNugetPackagePath();
     Assert.AreEqual(Path.Combine(Environment.CurrentDirectory, "Packages"), processor.PackagesPath);
 }
 public void GetPackagesPathWithNugetConfigAndNoPath()
 {
     var processor = new Processor
         {
             Logger = new Mock<BuildLogger>().Object,
             SolutionDir = "DirWithNugetConfigAndNoPath"
         };
     processor.FindNugetPackagePath();
     Assert.AreEqual(Path.Combine("DirWithNugetConfigAndNoPath", "Packages"), processor.PackagesPath);
 }
    public void NoNugetConfig()
    {
        var processor = new Processor
            {
                SolutionDir = Path.GetFullPath(Path.Combine(Environment.CurrentDirectory, "../../NugetPackagePathFinder/FakeSolution")),
                Logger = new Mock<BuildLogger>().Object
            };

        processor.FindNugetPackagePath();
        Assert.IsTrue(processor.PackagesPath.EndsWith("\\FakeSolution\\Packages"));
    }