//[Timeout(20000)] public async System.Threading.Tasks.Task FormMain_AllFormatsPipeAsync() { using (var frm = new FormMain(new ViewSettings())) { await UnitTestWinFormHelper.ShowFormAndCloseAsync(frm, .1, frm.LoadCsvFile(UnitTestInitializeCsv.GetTestPath("AllFormatsPipe.txt"))); Assert.IsNotNull(frm.DataTable); // 45 records, one of the lines has a linefeed Assert.IsTrue(frm.DataTable.Rows.Count >= 46); } }
public async Task FormColumnUI_Guess() { var csvFile = new CsvFile(UnitTestInitializeCsv.GetTestPath("BasicCSV.txt")); var col = new Column("ExamDate", DataType.DateTime); csvFile.ColumnCollection.AddIfNew(col); using (var form = new FormColumnUI(col, false, csvFile, new FillGuessSettings(), true, UnitTestInitializeWin.HTMLStyle)) { await UnitTestWinFormHelper.ShowFormAndCloseAsync(form, .2, frm => frm.Guess()); } }
public async System.Threading.Tasks.Task FormMain_BasicCSVAsync() { using (var frm = new FormMain(new ViewSettings())) { frm.Size = new Size(800, 600); await UnitTestWinFormHelper.ShowFormAndCloseAsync(frm, .2, frm.LoadCsvFile(Path.Combine(UnitTestInitializeCsv.GetTestPath("BasicCSV.txt.gz")))); Assert.IsNotNull(frm.DataTable); Assert.AreEqual(7, frm.DataTable.Rows.Count); } }