public Condition[] GetConditions()
{
return ConditionArrayNativeToManaged(this._obj.GetChildren());
}
}
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) { } }