Inheritance: BasePattern
示例#1
0
        /// -------------------------------------------------------------------
        /// <summary></summary>
        /// -------------------------------------------------------------------
        protected TogglePatternWrapper(AutomationElement element, string testSuite, TestPriorities priority, TypeOfControl typeOfControl, TypeOfPattern typeOfPattern, string dirResults, bool testEvents, IApplicationCommands commands)
            :
            base(element, testSuite, priority, typeOfControl, typeOfPattern, dirResults, testEvents, commands)
        {
            _pattern = (TogglePattern)element.GetCurrentPattern(TogglePattern.Pattern);

            if (_pattern == null)
                throw new Exception("TogglePattern: " + Helpers.PatternNotSupported);
        }
示例#2
0
 internal TogglePatternInformation(TogglePattern pattern, bool cache)
 {
     this.pattern = pattern;
     this.cache   = cache;
 }
示例#3
0
			internal TogglePatternInformation (TogglePattern pattern, bool cache)
			{
				this.pattern = pattern;
				this.cache = cache;
			}