本文整理匯總了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;
}