Ejemplo n.º 1
0
 public void PushPullBytes()
 {
     using (var push = new MessagePusher("localhost", 9101))
     {
         push.Send(new byte[100]);
         Thread.Sleep(500);
         Assert.Equal(100, _fixture.GetBytes().Length);
     }
 }
Ejemplo n.º 2
0
 public void PushPullText()
 {
     using (var push = new MessagePusher("localhost", 9101))
     {
         push.Send(Encoding.UTF8.GetBytes("hello"));
         Thread.Sleep(500);
         Assert.Equal("hello", Encoding.UTF8.GetString(_fixture.GetBytes()));
     }
 }