Пример #1
0
        public void add_statement()
        {
            var step = new Step(new TcoTask(new MockRootObject(), "SomeTask", "SomeTask"));

            var actual = step.AddStatement("_components.Piston.MoveOut().Done");

            Assert.AreEqual(1, step.Statements.Count());
            Assert.AreEqual("_components.Piston.MoveOut().Done", actual);
            Assert.AreEqual("_components.Piston.MoveOut().Done", step.Statements.First());
        }