A more complete mock for the F4 key. RunMacro sets a string property. This verifies that we are getting the unit of work into the required state.
Наследование: IFlexMacro
Пример #1
0
        /// <summary>
        /// Initialize the listener into a state where there is a MacroF4 mock available to implement that command.
        /// </summary>
        /// <param name="ml"></param>
        /// <returns></returns>
        private static MacroF4 SetupF4Implementation(MacroListener ml)
        {
            var macroF4           = new MacroF4();
            var macroImplementors = new List <IFlexMacro>(new IFlexMacro[] { macroF4 });

            ml.Macros         = ml.AssignMacrosToSlots(macroImplementors);
            macroF4.BeEnabled = true;
            return(macroF4);
        }
Пример #2
0
		/// <summary>
		/// Initialize the listener into a state where there is a MacroF4 mock available to implement that command.
		/// </summary>
		/// <param name="ml"></param>
		/// <returns></returns>
		private static MacroF4 SetupF4Implementation(MacroListener ml)
		{
			var macroF4 = new MacroF4();
			var macroImplementors = new List<IFlexMacro>(new IFlexMacro[] {macroF4});
			ml.Macros = ml.AssignMacrosToSlots(macroImplementors);
			macroF4.BeEnabled = true;
			return macroF4;
		}