Ejemplo n.º 1
0
 public void ReceiverAddedAndRemoved()
 {
     m_dispatcher.AddReceiver(this);
     Assert.IsTrue(m_dispatcher.HasReceiver(this));
     m_dispatcher.RemoveReceiver(this);
     Assert.IsFalse(m_dispatcher.HasReceiver(this));
 }
Ejemplo n.º 2
0
 public void TestSetup()
 {
     m_dispatcher = new MessageDispatcher();
     m_receiver   = new ReceiverBase();
     m_dispatcher.AddReceiver(m_receiver);
 }