public void NegativeCircularDependencyTestA() { string[] input = { "FilterService: ", "Nginx1521: Mono", "Mono: Fire", "Cors: FilterService", "NodeIO: Nginx1521", "Fire: " }; Parser parser = new Parser(); bool circularDependencyExists = parser.ContainsCircularDependency(parser.GetPackageList(input)); Assert.IsTrue(!circularDependencyExists); }
private string SmokeTestA(string[] input) { string output; Parser parser = new Parser(); List<Parser.Package> packages = parser.GetPackageList(input); if (!parser.ContainsCircularDependency(packages)) { output = parser.GetInstallQueue(packages); } else { output = string.Empty; } return output; }