本文整理汇总了C#中WindowsFramework.FrameworkId方法的典型用法代码示例。如果您正苦于以下问题:C# WindowsFramework.FrameworkId方法的具体用法?C# WindowsFramework.FrameworkId怎么用?C# WindowsFramework.FrameworkId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WindowsFramework
的用法示例。
在下文中一共展示了WindowsFramework.FrameworkId方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateForControlType
public static SearchCondition CreateForControlType(Type testControlType, WindowsFramework framework)
{
if (testControlType.IsCustomType())
return CreateForControlType(CustomControlTypeMapping.ControlType(testControlType, framework));
var controlTypes = ControlDictionary.Instance.GetControlType(testControlType, framework.FrameworkId());
if (controlTypes.Length == 1)
return CreateForControlType(controlTypes[0]);
return new OrSearchCondition(controlTypes.Select(CreateForControlType).ToArray());
}
示例2: FindNode
void FindNode(WindowsFramework framework)
{
Assert.True(tree.HasNode("Root"));
Assert.False(tree.HasNode("Roo"));
Assert.True(tree.HasNode("Main"));
Assert.True(tree.HasNode("Root", "Child"));
Assert.True(tree.HasNode("Root", "Child", "Grand Child"));
var exception = Assert.Throws<AutomationException>(() => tree.HasNode("Root", "Child", "Grand Child", "Grand Child"));
string expected = string.Format(
"Cannot expand TreeNode {0}TreeNode. AutomationId:, Name:Grand Child, " +
"ControlType:tree view item, FrameworkId:{1}, expand button not visible",
framework == WindowsFramework.Wpf ? "WPF" : "Win32",
framework.FrameworkId());
Assert.Equal(expected, exception.Message);
}
示例3: ExecuteTestRun
protected override void ExecuteTestRun(WindowsFramework framework)
{
RunTest(()=>TestToString(framework.FrameworkId()));
}
示例4: AndOfFramework
public virtual SearchCriteria AndOfFramework(WindowsFramework framework)
{
conditions.Insert(0, SearchConditionFactory.CreateForFrameworkId(framework.FrameworkId()));
return this;
}