예제 #1
0
        public void UseArguments(string argument, bool equality)
        {
            var plan = new Plan(
                Invoke("equals", equality)
                );

            var coroutine = new Regular.Entry(argument, plan.Spy <bool>("equals"));

            plan.AssertMatch(coroutine);
        }
예제 #2
0
        public void WorkWithOut()
        {
            var plan = new Plan(
                Suspend("Middle"),
                Invoke("action", 123)
                );

            var coroutine = new Out.Entry(plan.Spy <int>("action"));

            plan.AssertMatch(coroutine);
        }
예제 #3
0
        public void WorkWithOutDeclaration()
        {
            var plan = new Plan(
                Invoke("action", 19),
                Suspend("Parsed"),
                Invoke("action", 26)
                );

            var coroutine = new OutDeclaration.Entry(plan.Spy <int>("action"));

            plan.AssertMatch(coroutine);
        }