コード例 #1
0
ファイル: TableRowsTest.cs プロジェクト: EricBlack/White
        protected override void ExecuteTestRun(WindowsFramework framework)
        {
            SelectDataGridTab();
            table = MainWindow.Get<Table>("DataGrid");

            RunTest(GetRowTest);
            RunTest(GetMultipleRowsTest);
        }
コード例 #2
0
        protected override void ExecuteTestRun(WindowsFramework framework)
        {
            SelectDataGridTab();
            table = MainWindow.Get<Table>("DataGrid");
            rows = table.Rows;

            RunTest(RowData);
            RunTest(GetRowAfterSortingOnAColumn);
            RunTest(Select);
        }
コード例 #3
0
ファイル: TableTest.cs プロジェクト: EricBlack/White
        protected override void ExecuteTestRun(WindowsFramework framework)
        {
            SelectDataGridTab();
            table = MainWindow.Get<Table>("DataGrid");

            RunTest(Find);
            RunTest(TableRows);
            RunTest(SelectRowNotVisibleInitially);
            RunTest(TableHasScrollBars);
            RunTest(Columns);
            RunTest(GetRow);
            RunTest(FindAllTest);
            RunTest(IsInTop);
        }
コード例 #4
0
ファイル: TableCellTest.cs プロジェクト: EricBlack/White
        protected override void ExecuteTestRun(WindowsFramework framework)
        {
            SelectDataGridTab();
            table = MainWindow.Get<Table>("DataGrid");
            TableRows rows = table.Rows;
            row = rows[0];

            RunTest(SetTextCellValue);
            RunTest(GetEmptyValue);
            RunTest(SetCheckBoxCellValue);
            RunTest(SetComboBoxCellValue);
            RunTest(TextOnButtonCell);
            RunTest(Click);
        }
コード例 #5
0
ファイル: DataGridTests.cs プロジェクト: EricBlack/White
 protected override void ExecuteTestRun(WindowsFramework framework)
 {
     SelectDataGridTab();
     if (framework == WindowsFramework.Wpf)
     {
         DataGridWpfUnderTest = MainWindow.Get<ListView>(SearchCriteria.ByAutomationId("DataGridControl"));
         RunTest(CanGetAllItemsWpf);
         RunTest(CanGetCellWpf);
     }
     else if (framework == WindowsFramework.WinForms)
     {
         DataGridWinFormsUnderTest = MainWindow.Get<Table>(SearchCriteria.ByAutomationId("DataGridControl"));
         RunTest(CanGetAllItemsWinforms);
     }
 }
コード例 #6
0
ファイル: TableTest.cs プロジェクト: EricBlack/White
 void Find()
 {
     table = MainWindow.Get<Table>("DataGrid");
     Assert.NotEqual(null, table);
 }