當前位置: 首頁>>代碼示例>>C#>>正文


C# Step.Set方法代碼示例

本文整理匯總了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();
        }
開發者ID:adymitruk,項目名稱:storyteller,代碼行數:9,代碼來源:StepTester.cs

示例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);
        }
開發者ID:wbinford,項目名稱:storyteller,代碼行數:11,代碼來源:CellTagTester.cs

示例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);
        }
開發者ID:wbinford,項目名稱:storyteller,代碼行數:11,代碼來源:CellTagTester.cs

示例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");
        }
開發者ID:GaryLCoxJr,項目名稱:storyteller,代碼行數:11,代碼來源:StringComparerTester.cs

示例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;
 }
開發者ID:adymitruk,項目名稱:storyteller,代碼行數:6,代碼來源:Table.cs

示例6: ShallowClone

        public IStep ShallowClone()
        {
            var clone = new Step(GrammarKey);

            _values.Each((key, value) => clone.Set(key, value));

            return clone;
        }
開發者ID:adymitruk,項目名稱:storyteller,代碼行數:8,代碼來源:Step.cs


注:本文中的StoryTeller.Domain.Step.Set方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。