• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IStep类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: Invoke

        public Continuation Invoke(IStep step, StepContext stepContext)
        {
            if (step == null) throw new ArgumentNullException("step");
              if (stepContext == null) throw new ArgumentNullException("stepContext");

              var handler = _locator.GetStepHandler(step.GetType());

              if (handler == null) throw new ArgumentException("No handler for Step: " + step.GetType(), "step");

              return handler.Handle(step, stepContext);
        }
开发者ID:aaronjensen,项目名称:splits,代码行数:11,代码来源:IStepInvoker.cs


示例17: Execute

        public override void Execute(IStep containerStep, ITestContext context)
        {
            _callback = value =>
            {
                var returnCell = GetCells().Where(x => x.IsResult).FirstOrDefault();

                if (returnCell != null) returnCell.RecordActual(value, containerStep, context);
            };

            _method.Call(_target, containerStep, context, _callback);
        }
开发者ID:adymitruk,项目名称:storyteller,代码行数:11,代码来源:ReflectionGrammar.cs


示例18: execute

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

            // TODO -- start a convenience class for extensions on IWebElement
            bool isShown = element.Displayed || element.IsHiddenInput();

            assertCondition(isShown, HiddenElementMessage);

            var data = cellValues[Config.CellName];
            ElementHandlers.FindHandler(element).EnterData(CurrentContext, element, data);
        }
开发者ID:jemacom,项目名称:fubumvc,代码行数:12,代码来源:EnterValueGrammar.cs


示例19: AddStepAfter

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


示例20: confirmBackupAction

		public void confirmBackupAction(IStep step)
		{			
			O2Thread.mtaThread(
			()=> {
				step.set_Text("");				
				var sourceDirectory = step.getPathFromStep(0);
				var targetDirectory = step.getPathFromStep(1);
				var targetFile = calculateTargetFileName(sourceDirectory, targetDirectory);
				step.append_Text("You are about to create a backup of the folder: {1}{1}\t{0} {1}{1} ", sourceDirectory, Environment.NewLine);
                step.append_Text("into the file: {1}{1}\t{0}{1}{1}", targetFile, Environment.NewLine);
                step.append_Text("Do you want to processed");
			});
		}
开发者ID:CallMeSteve,项目名称:O2.Platform.Scripts,代码行数:13,代码来源:Wizard+-+BackupFolder.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IStorage类代码示例发布时间:2022-05-24
下一篇:
C# IStatusLogger类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap