public static int Main(string[] args) { if (args.Length > 3) { Console.WriteLine("Run with no arguments to generate test files with all 3 delimiters."); Console.WriteLine("Run with up to three arguments to parse lead files with commas, spaces or pipes as delimiters."); return(1); } if (args.Length == 0) { Console.WriteLine("No files provided. Generating test files."); var fileList = LeadGenerator.GenerateAndSaveTestFiles(10); Console.WriteLine("Test files Generated"); return(ParseSortAndDisplay(fileList)); } return(ParseSortAndDisplay(args)); }
public void GenerateAndSaveTestFiles_Works(int count) { var foo = LeadGenerator.GenerateAndSaveTestFiles(count); Assert.AreEqual(foo.Count(), 3); }