本文整理汇总了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);
}
示例2: ExceptionTag
void ITestStream.Do(DoGrammarStructure structure, IStep step)
{
_paragraphResults.ForExceptionText(text =>
{
_document.Add(new ExceptionTag(text));
});
}
示例3: ProgressDialog
public ProgressDialog(string title,IStep step)
: base(Font.MediumFont, title)
{
this.step = step;
progressLine = 1;
CreateProcessThread ();
}
示例4: ReadExpected
public void ReadExpected(ITestContext context, IStep step, SetRow row)
{
Cell.ReadArgument(context, step, x =>
{
row.Values[Cell.Key] = x;
});
}
示例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();
}
示例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));
}
示例7: SentenceTag
public SentenceTag(Sentence sentence, IStep step)
: base("div")
{
_sentence = sentence;
_step = step;
this.AddSafeClassName(sentence.Name);
AddClass("sentence");
}
示例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);
}
示例9: SetStep
private void SetStep(IStep step)
{
TopMost = step.TopMost;
_steps.Push(step);
step.Initialize(_state);
SetUI(step);
}
示例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;
}
}
}
示例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);
}
示例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);
});
}
示例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());
}
示例14: CellTag
public CellTag(Cell cell, IStep step)
: base("span")
{
if (step == null) throw new ArgumentNullException("step");
_cell = cell;
_step = step;
AddClass(HtmlClasses.INPUT);
}
示例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);
}