Example #1
0
 public void Setup()
 {
     test = new FakeTest1();
     vf   = new ValueFactoryTest1("none:");
     pool = new FreePool();
     src  = new MyMessageSource(this);
     stub = new StubTest1(src, test, pool, pool);
     xreplyMon.Set(null);
 }
Example #2
0
        public void Unwanted4()
        {
            Object obj = new Object();

            DeliveryService src = new MyMessageSource();
            StubBase        sb  = new StubBase(src, obj, null, null);

            Who     sender = new MyWho();
            Message msg    = new Message(null, null);

            sb.SessionMessage(sender, msg);
            Assert.Fail("delivery of unwanted message should fail");
        }