本文整理汇总了C#中StoryTeller.Domain.Step.Set方法的典型用法代码示例。如果您正苦于以下问题:C# Step.Set方法的具体用法?C# Step.Set怎么用?C# Step.Set使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StoryTeller.Domain.Step
的用法示例。
在下文中一共展示了Step.Set方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: has_checks_the_cache
public void has_checks_the_cache()
{
var step = new Step("a");
step.Has("b").ShouldBeFalse();
step.Set("b", 123);
step.Has("b").ShouldBeTrue();
}
示例2: write_preview_when_the_cell_value_is_null_in_the_step
public void write_preview_when_the_cell_value_is_null_in_the_step()
{
var cell = Cell.For<string>("name");
var step = new Step();
step.Set("name", null);
var tag = new CellTag(cell, step);
tag.WritePreview(new TestContext());
tag.Text().ShouldEqual(Step.NULL);
}
示例3: write_preview_when_the_cell_value_is_blank
public void write_preview_when_the_cell_value_is_blank()
{
var cell = Cell.For<string>("name");
var step = new Step();
step.Set("name", string.Empty);
var tag = new CellTag(cell, step);
tag.WritePreview(new TestContext());
tag.Text().ShouldEqual(Step.BLANK);
}
示例4: when_creating_the_expected_row
public void when_creating_the_expected_row()
{
var step = new Step("something");
step.Set(StringSetComparer.EXPECTED, "some text");
var row = new SetRow();
comparer.ReadExpected(new TestContext(), step, row);
row.Values[StringSetComparer.EXPECTED].ShouldEqual("some text");
}
示例5: BuildExampleStep
public virtual IStep BuildExampleStep()
{
var example = new Step(LeafName);
_cells.Where(cell => !cell.HasDefault()).Each(cell => example.Set(cell.Key, cell.SampleValue()));
return example;
}
示例6: ShallowClone
public IStep ShallowClone()
{
var clone = new Step(GrammarKey);
_values.Each((key, value) => clone.Set(key, value));
return clone;
}