public void Test_ValidFileWithBlankRows() { using (app) { app.InputFile = @"E:\_WINDOWS_APPS\SudokuTester\TestFiles\input_sudoku_ValidWithBlankRows.txt"; Assert.IsTrue(app.IsValidSudoku()); blocks = null; } }
static void Main(string[] args) { if (args.Length > 0 && !String.IsNullOrEmpty(args[0])) { if (File.Exists(args[0].ToString())) { using (SudokuValidator validator = new SudokuValidator()) { validator.InputFile = args[0].ToString(); Console.WriteLine(validator.IsValidSudoku()); } } else { Console.WriteLine("Input file not found."); } } else { Console.WriteLine("An input file was expected.\n\nUsage:\n\tSudokuTester.exe <path_to_your_input_file>"); } Console.ReadKey(); }