Пример #1
0
 public void Ecco()
 {
     var client = new ClientSocket(new ExtendedClientHandshake()
     {
         Origin = "testproject",
         Host = "localhost:8181",
         ResourcePath = "/ecco"
     });
     var msg = "hvad drikker møller";
     client.Send(msg);
     var answer = client.Receive();
     Assert.AreEqual(msg, answer, "didn't ecco right");
 }
Пример #2
0
        public void Send()
        {
            var client = new ClientSocket(new ExtendedClientHandshake()
            {
                Origin       = "testproject",
                Host         = "localhost:8181",
                ResourcePath = "/send"
            });

            client.Send(new String('y', SendToMe.Count));
            Thread.Sleep(1000);
            Assert.IsTrue(SendToMe.Passed, "didn't send right");
        }
Пример #3
0
        public void Ecco()
        {
            var client = new ClientSocket(new ExtendedClientHandshake()
            {
                Origin       = "testproject",
                Host         = "localhost:8181",
                ResourcePath = "/ecco"
            });
            var msg = "hvad drikker møller";

            client.Send(msg);
            var answer = client.Receive();

            Assert.AreEqual(msg, answer, "didn't ecco right");
        }
Пример #4
0
        public void SendMuch()
        {
            var client = new ClientSocket(new ExtendedClientHandshake()
            {
                Origin = "testproject",
                Host = "localhost:8181",
                ResourcePath = "/send"
            });

            SendToMe.Count = 1000 * 1000;

            client.Send(new String('y', SendToMe.Count));
            Thread.Sleep(1000);
            Assert.IsTrue(SendToMe.Passed, "didn't send much right");
        }