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; }
public void InstallQueueHasProperOrder() { Parser parser = new Parser(); string[] input = { "FilterService: ", "Nginx1521: Mono", "Mono: Fire", "Cors: FilterService", "NodeIO: Nginx1521", "Fire: " }; string expectedOutput = "FilterService, Fire, Mono, Nginx1521, Cors, NodeIO"; string output = parser.GetInstallQueue(parser.GetPackageList(input)); Assert.AreEqual(expectedOutput, output); }