当前位置: 首页>>代码示例>>C#>>正文


C# WindowsFramework.FrameworkId方法代码示例

本文整理汇总了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());
        }
开发者ID:EDOlsson,项目名称:White,代码行数:10,代码来源:SearchConditionFactory.cs

示例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);
 }
开发者ID:ashishjain76,项目名称:AutoConvertor,代码行数:15,代码来源:TreeTest.cs

示例3: ExecuteTestRun

 protected override void ExecuteTestRun(WindowsFramework framework)
 {
     RunTest(()=>TestToString(framework.FrameworkId()));
 }
开发者ID:ashishjain76,项目名称:AutoConvertor,代码行数:4,代码来源:AutomationElementXTest.cs

示例4: AndOfFramework

 public virtual SearchCriteria AndOfFramework(WindowsFramework framework)
 {
     conditions.Insert(0, SearchConditionFactory.CreateForFrameworkId(framework.FrameworkId()));
     return this;
 }
开发者ID:EDOlsson,项目名称:White,代码行数:5,代码来源:SearchCriteria.cs


注:本文中的WindowsFramework.FrameworkId方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。