public void Get0_byControlTypeName() { const string containsText = "*ame??atche*"; ControlType controlType = ControlType.Button; TestParametersAgainstCollection( containsText, controlType.ConvertControlTypeToStringArray(), new UiElement[] {}, new int[] {}, 0); }
public void Get3of3_byControlTypeName() { const string containsText = "*ame??atche*"; ControlType controlType = ControlType.Button; TestParametersAgainstCollection( containsText, controlType.ConvertControlTypeToStringArray(), new IUiElement[] { FakeFactory.GetAutomationElementExpected(controlType, "name matches", string.Empty, string.Empty, string.Empty, 10), FakeFactory.GetAutomationElementExpected(controlType, "NNName matches", string.Empty, string.Empty, string.Empty, 20), FakeFactory.GetAutomationElementExpected(controlType, "name matcheZ", string.Empty, string.Empty, string.Empty, 30) }, new int[] { 10, 20, 30 }, 3); }
public void Get0of4_byControlTypeName() { const string containsText = "*ame??atche*"; ControlType controlType = ControlType.Button; TestParametersAgainstCollection( containsText, controlType.ConvertControlTypeToStringArray(), new IUiElement[] { FakeFactory.GetAutomationElementExpected(controlType, "other name", string.Empty, string.Empty, string.Empty, 10), FakeFactory.GetAutomationElementExpected(controlType, "second name", string.Empty, string.Empty, string.Empty, 20), FakeFactory.GetAutomationElementExpected(controlType, "third name", string.Empty, string.Empty, string.Empty, 30), FakeFactory.GetAutomationElementNotExpected(ControlType.DataGrid, containsText, string.Empty, string.Empty, string.Empty, 40) }, new int[] { 10, 20, 30, 40 }, 3); }
[NUnit.Framework.Test] // [MbUnit.Framework.Test][NUnit.Framework.Test][Fact] public void Get2of4_byControlTypeName() { // Arrange const string containsText = "*ame??atche*"; ControlType controlType = ControlType.Button; TestParametersAgainstCollection( containsText, controlType.ConvertControlTypeToStringArray(), new IUiElement[] { FakeFactory.GetAutomationElementExpected(controlType, "other name", string.Empty, string.Empty, string.Empty, 15), FakeFactory.GetAutomationElementExpected(controlType, "name matches", string.Empty, string.Empty, string.Empty, 30), FakeFactory.GetAutomationElementExpected(controlType, "third name", string.Empty, string.Empty, string.Empty, 45), FakeFactory.GetAutomationElementNotExpected(ControlType.Group, containsText, string.Empty, string.Empty, string.Empty, 60) }, new int[] { 15, 30, 45, 60 }, 2); }