Example #1
0
 public NullStream(SampleHandler Callback)
     : base(new Audio.Channel[] { }, new Audio.Channel[] { })
 {
     callback = Callback;
     thread = new Thread(Proc);
     thread.Start();
 }
 public void MessageHandlerDispatchesByType()
 {
     Message message = new Message();
     message.SetData("type", "type1");
     MessageMap messageMap = new MessageMap(GetType().Assembly, "CometGateway.Server.Gateway.Tests.SampleMessages");
     SampleHandler handler = new SampleHandler(messageMap);
     handler.HandleMessage(message);
     Assert.AreEqual("SampleMessage1", handler.called);
 }