Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 protected override void RunTest(WindowsFramework framework)
 {
     ComboBoxUnderTest = MainWindow.Get<ComboBox>("EditableComboBox");
     RunTest(SetValueInEditableComboBox);
     RunTest(SelectItemInEditableComboBox);
 }
Ejemplo n.º 3
0
 protected override void TestFixtureSetUp()
 {
     comboBox = window.Get<ComboBox>("komboBox");
     Assert.AreEqual(string.Empty, comboBox.SelectedItemText);
 }
Ejemplo n.º 4
0
 protected override void RunTest(WindowsFramework framework)
 {
     ComboBoxUnderTest = MainWindow.Get<ComboBox>("DataBoundComboBox");
     RunTest(CanSelectDataboundItems);
 }