Inheritance: BasePattern
コード例 #1
0
ファイル: DockTests.cs プロジェクト: geeksree/cSharpGeeks
		/// -------------------------------------------------------------------
		/// <summary></summary>
		/// -------------------------------------------------------------------
		public DockTests(AutomationElement element, TestPriorities priority, string dirResults, bool testEvents, TypeOfControl typeOfControl, IApplicationCommands commands)
            :
            base(element, TestSuite, priority, typeOfControl, TypeOfPattern.Dock, dirResults, testEvents, commands)
        {
            m_pattern = (DockPattern)element.GetCurrentPattern(DockPattern.Pattern);
            if (m_pattern == null)
                throw new Exception(Helpers.PatternNotSupported);
        }
コード例 #2
0
ファイル: DockPattern.cs プロジェクト: mono/uia2atk
			internal DockPatternInformation (DockPattern pattern, bool cache)
			{
				this.pattern = pattern;
				this.cache = cache;
			}
コード例 #3
0
 internal DockPatternInformation(DockPattern pattern, bool cache)
 {
     this.pattern = pattern;
     this.cache   = cache;
 }
コード例 #4
0
ファイル: DockPatternTest.cs プロジェクト: mono/uia2atk
		private void VerifyDockPosition (DockPattern pattern, DockPosition dockPosition)
		{
			Assert.AreEqual (dockPosition,
				pattern.Current.DockPosition,
				"DockPosition " + dockPosition);
			Assert.AreEqual (dockPosition,
				splitter1Element.GetCurrentPropertyValue (DockPattern.DockPositionProperty),
				"DockPositionProperty " + dockPosition);
		}