System.Windows.Automation.AndCondition.GetConditions C# (CSharp) Method

GetConditions() public method

public GetConditions ( ) : Condition[]
return Condition[]
        public Condition[] GetConditions()
        {
            return ConditionArrayNativeToManaged(this._obj.GetChildren());
        }
    }

Usage Example

Example #1
0
        public void AndConditionTest()
        {
            // Positive test
            Condition condition = Condition.TrueCondition;
            Condition condition2 = Condition.FalseCondition;
            AndCondition target = new AndCondition(condition, condition2);
            Condition[] actual;
            actual = target.GetConditions();
            Assert.IsNotNull(actual);
            Assert.AreEqual(actual.Length, 2);

            // Negative test - include a null
            try
            {
                target = new AndCondition(condition, null);

                Assert.Fail("expected exception");
            }
            catch (System.ArgumentException)
            {
            }
        }
All Usage Examples Of System.Windows.Automation.AndCondition::GetConditions