/Languages/IronPython/Samples/tests/CommentChecker/UIMap.Designer.vb

https://github.com/kumaryu/IronLanguages-main · Visual Basic · 159 lines · 107 code · 24 blank · 28 comment · 0 complexity · 6c6d1f24074a8f42142338460b94aca8 MD5 · raw file

  1. '------------------------------------------------------------------------------
  2. ' <auto-generated>
  3. ' This code was generated by coded UI test builder.
  4. ' Version: 10.0.0.0
  5. '
  6. ' Changes to this file may cause incorrect behavior and will be lost if
  7. ' the code is regenerated.
  8. ' </auto-generated>
  9. ' ------------------------------------------------------------------------------
  10. Imports System
  11. Imports System.CodeDom.Compiler
  12. Imports System.Collections.Generic
  13. Imports System.Drawing
  14. Imports System.Text.RegularExpressions
  15. Imports System.Windows.Input
  16. Imports Microsoft.VisualStudio.TestTools.UITest.Extension
  17. Imports Microsoft.VisualStudio.TestTools.UITesting
  18. Imports Microsoft.VisualStudio.TestTools.UITesting.WpfControls
  19. Imports Microsoft.VisualStudio.TestTools.UnitTesting
  20. Imports Keyboard = Microsoft.VisualStudio.TestTools.UITesting.Keyboard
  21. Imports Mouse = Microsoft.VisualStudio.TestTools.UITesting.Mouse
  22. Imports MouseButtons = System.Windows.Forms.MouseButtons
  23. Namespace CommentChecker
  24. <GeneratedCode("Coded UITest Builder", "10.0.30319.1")> _
  25. Partial Public Class UIMap
  26. '''<summary>
  27. '''ClickSampleWindow
  28. '''</summary>
  29. Public Sub ClickSampleWindow()
  30. Dim uIIronPythonCommentCheTitleBar As WpfTitleBar = Me.UIIronPythonCommentCheWindow.UIIronPythonCommentCheTitleBar
  31. 'Click 'IronPython Comment Checker' title bar
  32. Mouse.Click(uIIronPythonCommentCheTitleBar, New Point(586, 5))
  33. End Sub
  34. '''<summary>
  35. '''AssertWindowName - Use 'AssertWindowNameExpectedValues' to pass parameters into this method.
  36. '''</summary>
  37. Public Sub AssertWindowName()
  38. Dim uIIronPythonCommentCheTitleBar As WpfTitleBar = Me.UIIronPythonCommentCheWindow.UIIronPythonCommentCheTitleBar
  39. 'Verify that 'IronPython Comment Checker' title bar's property 'Name' equals 'IronPython Comment Checker'
  40. Assert.AreEqual(Me.AssertWindowNameExpectedValues.UIIronPythonCommentCheTitleBarName, uIIronPythonCommentCheTitleBar.Name)
  41. End Sub
  42. '''<summary>
  43. '''CloseSample
  44. '''</summary>
  45. Public Sub CloseSample()
  46. Dim uIIronPythonCommentCheTitleBar As WpfTitleBar = Me.UIIronPythonCommentCheWindow.UIIronPythonCommentCheTitleBar
  47. Dim uICloseButton As WpfButton = Me.UIIronPythonCommentCheWindow.UIIronPythonCommentCheTitleBar.UICloseButton
  48. 'Click 'IronPython Comment Checker' title bar
  49. Mouse.Click(uIIronPythonCommentCheTitleBar, New Point(713, 9))
  50. 'Click 'Close' button
  51. Mouse.Click(uICloseButton, New Point(8, 9))
  52. End Sub
  53. #Region "Properties"
  54. Public Overridable ReadOnly Property AssertWindowNameExpectedValues() As AssertWindowNameExpectedValues
  55. Get
  56. If (Me.mAssertWindowNameExpectedValues Is Nothing) Then
  57. Me.mAssertWindowNameExpectedValues = New AssertWindowNameExpectedValues()
  58. End If
  59. Return Me.mAssertWindowNameExpectedValues
  60. End Get
  61. End Property
  62. Public ReadOnly Property UIIronPythonCommentCheWindow() As UIIronPythonCommentCheWindow
  63. Get
  64. If (Me.mUIIronPythonCommentCheWindow Is Nothing) Then
  65. Me.mUIIronPythonCommentCheWindow = New UIIronPythonCommentCheWindow()
  66. End If
  67. Return Me.mUIIronPythonCommentCheWindow
  68. End Get
  69. End Property
  70. #End Region
  71. #Region "Fields"
  72. Private mAssertWindowNameExpectedValues As AssertWindowNameExpectedValues
  73. Private mUIIronPythonCommentCheWindow As UIIronPythonCommentCheWindow
  74. #End Region
  75. End Class
  76. '''<summary>
  77. '''Parameters to be passed into 'AssertWindowName'
  78. '''</summary>
  79. <GeneratedCode("Coded UITest Builder", "10.0.30319.1")> _
  80. Public Class AssertWindowNameExpectedValues
  81. #Region "Fields"
  82. '''<summary>
  83. '''Verify that 'IronPython Comment Checker' title bar's property 'Name' equals 'IronPython Comment Checker'
  84. '''</summary>
  85. Public UIIronPythonCommentCheTitleBarName As String = "IronPython Comment Checker"
  86. #End Region
  87. End Class
  88. <GeneratedCode("Coded UITest Builder", "10.0.30319.1")> _
  89. Public Class UIIronPythonCommentCheWindow
  90. Inherits WpfWindow
  91. Public Sub New()
  92. MyBase.New
  93. Me.SearchProperties(WpfWindow.PropertyNames.Name) = "IronPython Comment Checker"
  94. Me.SearchProperties.Add(New PropertyExpression(WpfWindow.PropertyNames.ClassName, "HwndWrapper", PropertyExpressionOperator.Contains))
  95. Me.WindowTitles.Add("IronPython Comment Checker")
  96. End Sub
  97. #Region "Properties"
  98. Public ReadOnly Property UIIronPythonCommentCheTitleBar() As UIIronPythonCommentCheTitleBar
  99. Get
  100. If (Me.mUIIronPythonCommentCheTitleBar Is Nothing) Then
  101. Me.mUIIronPythonCommentCheTitleBar = New UIIronPythonCommentCheTitleBar(Me)
  102. End If
  103. Return Me.mUIIronPythonCommentCheTitleBar
  104. End Get
  105. End Property
  106. #End Region
  107. #Region "Fields"
  108. Private mUIIronPythonCommentCheTitleBar As UIIronPythonCommentCheTitleBar
  109. #End Region
  110. End Class
  111. <GeneratedCode("Coded UITest Builder", "10.0.30319.1")> _
  112. Public Class UIIronPythonCommentCheTitleBar
  113. Inherits WpfTitleBar
  114. Public Sub New(ByVal searchLimitContainer As UITestControl)
  115. MyBase.New(searchLimitContainer)
  116. Me.SearchProperties(WpfTitleBar.PropertyNames.AutomationId) = "TitleBar"
  117. Me.WindowTitles.Add("IronPython Comment Checker")
  118. End Sub
  119. #Region "Properties"
  120. Public ReadOnly Property UICloseButton() As WpfButton
  121. Get
  122. If (Me.mUICloseButton Is Nothing) Then
  123. Me.mUICloseButton = New WpfButton(Me)
  124. Me.mUICloseButton.SearchProperties(WpfButton.PropertyNames.AutomationId) = "Close"
  125. Me.mUICloseButton.WindowTitles.Add("IronPython Comment Checker")
  126. End If
  127. Return Me.mUICloseButton
  128. End Get
  129. End Property
  130. #End Region
  131. #Region "Fields"
  132. Private mUICloseButton As WpfButton
  133. #End Region
  134. End Class
  135. End Namespace