GetRuntimeId() public method

public GetRuntimeId ( ) : int[]
return int[]
コード例 #1
0
            public void ChildElementsAppendTheirsToTheirParents()
            {
                var child = new AutomationProvider();

                _automationProvider.AddChild(child);
                _automationProvider.RuntimeId = 123;

                child.GetRuntimeId().Should().Equal(new[] { AutomationInteropProvider.AppendRuntimeId, 123, 0 });
            }
コード例 #2
0
 public void NativeWindowsNeedNoRuntimeId()
 {
     _automationProvider.SetPropertyValue(AutomationElementIdentifiers.NativeWindowHandleProperty.Id, 123);
     _automationProvider.GetRuntimeId().Should().BeNull();
 }