public void GetPackagesPathWithNugetConfigAndNoPath() { var processor = new AddinFinder { Logger = new Mock<BuildLogger>().Object, SolutionDir = "DirWithNugetConfigAndNoPath" }; processor.FindNugetPackagePath(); Assert.AreEqual(Path.Combine("DirWithNugetConfigAndNoPath", "Packages"), processor.PackagesPath); }
public void GetPackagesPathDefault() { var processor = new AddinFinder { 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 AddinFinder { Logger = new Mock <BuildLogger>().Object, SolutionDir = "DirWithNugetConfigAndNoPath" }; processor.FindNugetPackagePath(); Assert.AreEqual(Path.Combine("DirWithNugetConfigAndNoPath", "Packages"), processor.PackagesPath); }
public void GetPackagesPathDefault() { var processor = new AddinFinder { Logger = new Mock <BuildLogger>().Object, SolutionDir = Environment.CurrentDirectory }; processor.FindNugetPackagePath(); Assert.AreEqual(Path.Combine(Environment.CurrentDirectory, "Packages"), processor.PackagesPath); }
public void NoNugetConfig() { var processor = new AddinFinder { SolutionDir = Path.GetFullPath(Path.Combine(Environment.CurrentDirectory, "../../NugetPackagePathFinder/FakeSolution")), Logger = new Mock <BuildLogger>().Object }; processor.FindNugetPackagePath(); Assert.IsTrue(processor.PackagesPath.EndsWith("\\FakeSolution\\Packages")); }
public void NoNugetConfig() { var processor = new AddinFinder { SolutionDir = Path.GetFullPath(Path.Combine(Environment.CurrentDirectory, "../../NugetPackagePathFinder/FakeSolution")), Logger = new Mock<BuildLogger>().Object }; processor.FindNugetPackagePath(); Assert.IsTrue(processor.PackagesPath.EndsWith("\\FakeSolution\\Packages")); }