Пример #1
0
        /// <exception cref="System.Exception"/>
        public virtual void CallableExRun()
        {
            TestRunnableCallable.CEx c  = new TestRunnableCallable.CEx();
            RunnableCallable         rc = new RunnableCallable(c);

            rc.Run();
        }
Пример #2
0
        public virtual void Callable()
        {
            TestRunnableCallable.C c  = new TestRunnableCallable.C();
            RunnableCallable       rc = new RunnableCallable(c);

            rc.Run();
            NUnit.Framework.Assert.IsTrue(c.Run);
            c  = new TestRunnableCallable.C();
            rc = new RunnableCallable(c);
            rc.Call();
            NUnit.Framework.Assert.IsTrue(c.Run);
            NUnit.Framework.Assert.AreEqual(rc.ToString(), "C");
        }
Пример #3
0
        public virtual void Runnable()
        {
            TestRunnableCallable.R r  = new TestRunnableCallable.R();
            RunnableCallable       rc = new RunnableCallable(r);

            rc.Run();
            NUnit.Framework.Assert.IsTrue(r.Run);
            r  = new TestRunnableCallable.R();
            rc = new RunnableCallable(r);
            rc.Call();
            NUnit.Framework.Assert.IsTrue(r.Run);
            NUnit.Framework.Assert.AreEqual(rc.ToString(), "R");
        }