示例#1
0
        public void AddCondition_ExpectedBehavior()
        {
            var task = new Selector <byte>()
            {
                Name = "Test"
            };
            var t = task.AddCondition(new FuncCondition <MyContext, byte>("TestCondition", context => context.Done == false));

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