public void ScanNugerRef_Test() { var scan = new NugetReferenceScan(); var project = new ProjectResult(new FileInfo(@"C:\s\Serva.Base.Plugin\Serva.Base.Plugin\Serva.Base.Plugin\Serva.Base.Plugin.csproj"), new FileInfo(@"C:\s\Serva.Base.Plugin\Serva.Base.Plugin\Serva.Base.Plugin\packages.config")); var actual = scan.ScanNugetReferences(project); }
public void TestGenerateReport() { var scan = new NugetReferenceScan(); var project = new ProjectResult(new FileInfo(@"F:\Projects\_GitHub\DependencyScanner\DependencyScanner.Standalone\DependencyScanner.Standalone.csproj"), new FileInfo(@"F:\Projects\_GitHub\DependencyScanner\DependencyScanner.Standalone\packages.config")); var actual = scan.ScanNugetReferences(project); var generator = new ReportGenerator(); var result = generator.GenerateReport(actual, "DependencyScanner", "1.2.3.4"); Debug.WriteLine(result); var docu = XDocument.Parse(result); var node = docu.Nodes().OfType <XProcessingInstruction>().ToList(); var key = new StorageKey(node); }