public void ChildElementsAppendTheirsToTheirParents() { var child = new AutomationProvider(); _automationProvider.AddChild(child); _automationProvider.RuntimeId = 123; child.GetRuntimeId().Should().Equal(new[] { AutomationInteropProvider.AppendRuntimeId, 123, 0 }); }
public void NativeWindowsNeedNoRuntimeId() { _automationProvider.SetPropertyValue(AutomationElementIdentifiers.NativeWindowHandleProperty.Id, 123); _automationProvider.GetRuntimeId().Should().BeNull(); }