Esempio n. 1
0
        public void AddCondition_ExpectedBehavior()
        {
            var task = new Sequence() { Name = "Test" };
            var t = task.AddCondition(new FuncCondition<MyContext>("TestCondition", context => context.Done == false));

            Assert.IsTrue(t == task);
            Assert.IsTrue(task.Conditions.Count == 1);
        }