protected override void RunTest(WindowsFramework framework) { CoreAppXmlConfiguration.Instance.LoggerFactory = new ConsoleFactory(LoggerLevel.Debug); ComboBoxUnderTest = MainWindow.Get<ComboBox>(SearchCriteria.ByAutomationId("AComboBox")); RunTest(ListItemInComboBoxWithoutTextAvailableInitially, WindowsFramework.Wpf); RunTest(CanSelectItemAtTopOfList); RunTest(CanGetAllItems); RunTest(CanSelectItemAtBottomOfList); RunTest(CanSelectItemAtTopOfList); // Once an item is selected at the bottom of the list, White couldn't select at the top again RunTest(CanSelectByIndex); RunTest(CanSelectReallyLongText); RunTest(SetValue); }
protected override void RunTest(WindowsFramework framework) { ComboBoxUnderTest = MainWindow.Get<ComboBox>("EditableComboBox"); RunTest(SetValueInEditableComboBox); RunTest(SelectItemInEditableComboBox); }
protected override void TestFixtureSetUp() { comboBox = window.Get<ComboBox>("komboBox"); Assert.AreEqual(string.Empty, comboBox.SelectedItemText); }
protected override void RunTest(WindowsFramework framework) { ComboBoxUnderTest = MainWindow.Get<ComboBox>("DataBoundComboBox"); RunTest(CanSelectDataboundItems); }