Пример #1
0
        public void set_step_value_should_set_a_value_on_all_steps()
        {
            var   leaf  = new StepLeaf();
            IStep step0 = leaf.AddNewStep();
            IStep step1 = leaf.AddNewStep();
            IStep step2 = leaf.AddNewStep();
            IStep step3 = leaf.AddNewStep();

            leaf.SetStepValue("a", "1");

            step0.Get("a").ShouldEqual("1");
            step1.Get("a").ShouldEqual("1");
            step2.Get("a").ShouldEqual("1");
            step3.Get("a").ShouldEqual("1");
        }
Пример #2
0
        public void SetDefaultValueFor(string key, StepLeaf leaf)
        {
            Cell cell = _cells.First(x => x.Key == key);

            leaf.SetStepValue(key, cell.DefaultValue);
        }
Пример #3
0
 public void SetDefaultValueFor(string key, StepLeaf leaf)
 {
     Cell cell = _cells.First(x => x.Key == key);
     leaf.SetStepValue(key, cell.DefaultValue);
 }
Пример #4
0
        public void set_step_value_should_set_a_value_on_all_steps()
        {
            var leaf = new StepLeaf();
            IStep step0 = leaf.AddNewStep();
            IStep step1 = leaf.AddNewStep();
            IStep step2 = leaf.AddNewStep();
            IStep step3 = leaf.AddNewStep();

            leaf.SetStepValue("a", "1");

            step0.Get("a").ShouldEqual("1");
            step1.Get("a").ShouldEqual("1");
            step2.Get("a").ShouldEqual("1");
            step3.Get("a").ShouldEqual("1");
        }