AddNugetDirectoryToAddinSearch() public method

public AddNugetDirectoryToAddinSearch ( ) : void
return void
コード例 #1
0
 public void Simple()
 {
     var processor = new AddinFinder
                        {
                            SolutionDirectoryPath = Environment.CurrentDirectory
                        };
     processor.AddNugetDirectoryToAddinSearch();
     var searchPaths = processor.AddinSearchPaths;
     var expected = Path.Combine(Environment.CurrentDirectory, "Packages");
     Assert.AreEqual(expected , searchPaths[0]);
 }
コード例 #2
0
 public void Simple()
 {
     var logger = new Mock<BuildLogger>().Object;
     var processor = new AddinFinder
                        {
                            Logger = logger,
                            PackagesPath = Environment.CurrentDirectory
                        };
     processor.AddNugetDirectoryToAddinSearch();
     var searchPaths = processor.AddinSearchPaths;
     Assert.AreEqual(Environment.CurrentDirectory, searchPaths[0]);
 }
コード例 #3
0
    public void Simple()
    {
        var logger    = new Mock <BuildLogger>().Object;
        var processor = new AddinFinder
        {
            Logger       = logger,
            PackagesPath = Environment.CurrentDirectory
        };

        processor.AddNugetDirectoryToAddinSearch();
        var searchPaths = processor.AddinSearchPaths;

        Assert.AreEqual(Environment.CurrentDirectory, searchPaths[0]);
    }