Ejemplo n.º 1
0
        public void ApplyEffects_ExpectedBehavior()
        {
            var ctx  = new MyContext();
            var task = new PrimitiveTask <byte>()
            {
                Name = "Test"
            };
            var t = task.AddEffect(new ActionEffect <MyContext, byte>("TestEffect", EffectType.Permanent, (context, type) => context.Done = true));

            task.ApplyEffects(ctx);

            Assert.AreEqual(true, ctx.Done);
        }