public void SendReceiveMessage() { SubscriberClass subscriber = new SubscriberClass(); SenderClass sender = new SenderClass(); Assert.Equal(INTPROPVAL, subscriber.IntVal); Assert.Equal(STRINGPOPVAL, subscriber.StringVal); }
public PublisherClass() { SubscriberClass d2 = new SubscriberClass(ref Event); if (Event != null) { Event(); } }
static void Main(string[] args) { var subscriber = new SubscriberClass(); var publisher = new PublisherClass(); publisher.DoWork(); publisher.DoAnotherWork(); Console.Read(); }