static void Main(string[] args) { Console.OutputEncoding = Encoding.UTF8; var path = string.Empty; if (args.Length > 0) { path = args[0]; } while (!FileValidate.Validate(path)) { Console.WriteLine(Messages.PromtPath); path = Console.ReadLine(); } var analyzer = new DataAnalyzer(path); analyzer.Analyze(); analyzer.Report(); }
public void ValidateTest_ShouldReturnTrueIfTxtOrCsv(string path, bool expected) { var actual = FileValidate.Validate(path); Assert.AreEqual(expected, actual); }