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


C# IStep类代码示例

本文整理汇总了C#中IStep的典型用法代码示例。如果您正苦于以下问题:C# IStep类的具体用法?C# IStep怎么用?C# IStep使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IStep类属于命名空间,在下文中一共展示了IStep类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: onStepLoad

		public void onStepLoad(IStep step, Assembly assembly)
		{
			var assemblyInvoke = (ascx_AssemblyInvoke)step.FirstControl;
			assemblyInvoke.loadAssembly(assembly);
			assemblyInvoke.setExecuteMethodOnDoubleClick(true);
			//PublicDI.log.error("type:{0}:", assemblyInvoke.GetType().FullName);
		}
开发者ID:CallMeSteve,项目名称:O2.Platform.Scripts,代码行数:7,代码来源:Wizard+-+XRule+Exec+Simple.cs

示例2: ExceptionTag

 void ITestStream.Do(DoGrammarStructure structure, IStep step)
 {
     _paragraphResults.ForExceptionText(text =>
     {
         _document.Add(new ExceptionTag(text));
     });
 }
开发者ID:wbinford,项目名称:storyteller,代码行数:7,代码来源:ResultsWriter.cs

示例3: ProgressDialog

 public ProgressDialog(string title,IStep step)
     : base(Font.MediumFont, title)
 {
     this.step = step;
     progressLine = 1;
     CreateProcessThread ();
 }
开发者ID:bernhard-hofmann,项目名称:monoev3,代码行数:7,代码来源:ProgressDialog.cs

示例4: ReadExpected

 public void ReadExpected(ITestContext context, IStep step, SetRow row)
 {
     Cell.ReadArgument(context, step, x =>
     {
         row.Values[Cell.Key] = x;
     });
 }
开发者ID:wbinford,项目名称:storyteller,代码行数:7,代码来源:PropertyMatch.cs

示例5: execute

        protected override void execute(IWebElement element, IDictionary<string, object> cellValues, IStep step, ITestContext context)
        {
            assertCondition(element.Enabled, DisabledElementMessage);
            assertCondition(element.Displayed, HiddenElementMessage);

            element.Click();
        }
开发者ID:jemacom,项目名称:fubumvc,代码行数:7,代码来源:ClickGrammar.cs

示例6: execute

        protected override void execute(IWebElement element, IDictionary<string, object> cellValues, IStep step, ITestContext context)
        {
            // TODO -- StoryTeller needs to pull this all inside the Cell
            if (!cellValues.ContainsKey(_cell.Key))
            {
                // already caught as a syntax error
                return;
            }

            var handler = ElementHandlers.FindHandler(element);
            var expectedValue = cellValues[_cell.Key];

            var matchingHandler = handler as IMatchingHandler ?? new BasicMatchingHandler(handler, context);

            if (matchingHandler.MatchesData(element, expectedValue))
            {
                context.IncrementRights();
            }
            else
            {
                context.ResultsFor(step).MarkFailure(_cell.Key);
                context.IncrementWrongs();
            }

            context.ResultsFor(step).SetActual(_cell.Key, handler.GetData(CurrentContext, element));
        }
开发者ID:jemacom,项目名称:fubumvc,代码行数:26,代码来源:CheckValueGrammar.cs

示例7: SentenceTag

 public SentenceTag(Sentence sentence, IStep step)
     : base("div")
 {
     _sentence = sentence;
     _step = step;
     this.AddSafeClassName(sentence.Name);
     AddClass("sentence");
 }
开发者ID:wbinford,项目名称:storyteller,代码行数:8,代码来源:SentenceTag.cs

示例8: Execute

        public void Execute(IStep containerStep, ITestContext context)
        {
            context.PerformAction(containerStep, _before);

            containerStep.LeafFor(_leafName).AllSteps().Each(step => { context.RunStep(InnerGrammar, step); });

            context.PerformAction(containerStep, _after);
        }
开发者ID:GaryLCoxJr,项目名称:StoryTeller2,代码行数:8,代码来源:TableGrammar.cs

示例9: SetStep

        private void SetStep(IStep step)
        {
            TopMost = step.TopMost;
            _steps.Push(step);
            step.Initialize(_state);

            SetUI(step);
        }
开发者ID:rwg0,项目名称:ConeSharp,代码行数:8,代码来源:ConeSharpForm.cs

示例10: AddStepBefore

 public void AddStepBefore(Type target, IStep step)
 {
     for (int i = 0; i < _steps.Count; i++) {
         if (_steps [i].GetType () == target) {
             _steps.Insert (i, step);
             return;
         }
     }
 }
开发者ID:Cadla,项目名称:OBFSCTR,代码行数:9,代码来源:Pipeline.cs

示例11: Parse

        public void Parse(string template, IStep step, IEnumerable<Cell> cells)
        {
            MatchCollection matches = Regex.Matches(template, @"\{(\w+)\}");

            List<string> keys = getKeys(matches);
            validate(template, cells, keys);

            parse(template, matches, cells, step);
        }
开发者ID:wbinford,项目名称:storyteller,代码行数:9,代码来源:DisplayParser.cs

示例12: step2_loadFiles

        public void step2_loadFiles(IStep step)
        {
        	O2Thread.mtaThread(
        		() => 	{				        	
				        	var testFiles = Files.getFilesFromDir_returnFullPath(PublicDI.config.O2TempDir,"*.cs", true);
				        	var searchTargets = (ascx_SearchTargets)step.Controller.steps[2].FirstControl;
				        	searchTargets.loadFiles(testFiles);
				        });
        }
开发者ID:CallMeSteve,项目名称:O2.Platform.Scripts,代码行数:9,代码来源:Wizard+-+SearchEngine+UseCase+1.cs

示例13: InvokefMethod

 public void InvokefMethod(IStep step, string clause)
 {
     "Given a string"
         .Given(() => clause = "Given foo");
     "When the do extension method is invoked"
         .When(() => step = clause.f(() => { }));
     "Then a step is returned"
         .Then(() => step.Should().NotBeNull());
 }
开发者ID:robi-y,项目名称:xbehave.net,代码行数:9,代码来源:StringExtensionsSpecifications.cs

示例14: CellTag

        public CellTag(Cell cell, IStep step)
            : base("span")
        {
            if (step == null) throw new ArgumentNullException("step");

            _cell = cell;
            _step = step;

            AddClass(HtmlClasses.INPUT);
        }
开发者ID:wbinford,项目名称:storyteller,代码行数:10,代码来源:CellTag.cs

示例15: AddStepBefore

		public void AddStepBefore (Type target, IStep step)
		{
			for (int i = 0; i < _steps.Count; i++) {
				if (target.IsInstanceOfType (_steps [i])) {
					_steps.Insert (i, step);
					return;
				}
			}
			string msg = String.Format ("Step {0} could not be inserted before (not found) {1}", step, target);
			throw new InvalidOperationException (msg);
		}
开发者ID:nobled,项目名称:mono,代码行数:11,代码来源:Pipeline.cs


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