-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathTreeWalkerTest.cs
33 lines (29 loc) · 1018 Bytes
/
TreeWalkerTest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System.Windows.Automation;
using NUnit.Framework;
namespace UIAComWrapperTests
{
/// <summary>
/// Summary description for TreeWalker
/// </summary>
[TestFixture]
public class TreeWalkerTest
{
[Test]
public void PreDefinedConditionsTest()
{
Condition rawView = Automation.RawViewCondition;
Assert.IsNotNull(rawView);
Condition controlView = Automation.ControlViewCondition;
Assert.IsInstanceOf<NotCondition>(controlView);
NotCondition notCond = (NotCondition)controlView;
Assert.IsInstanceOf<PropertyCondition>(notCond.Condition);
Condition contentView = Automation.ContentViewCondition;
Assert.IsInstanceOf<NotCondition>(contentView);
NotCondition notCond2 = (NotCondition)contentView;
Assert.IsInstanceOf<OrCondition>(notCond2.Condition);
}
//
// TreeIterationTest moved to ExplorerTargetTests.
//
}
}