Example #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");
 }
Example #2
0
        public void Receive()
        {
            var client = new ClientSocket(new ExtendedClientHandshake()
            {
                Origin       = "testproject",
                Host         = "localhost:8181",
                ResourcePath = "/get"
            });

            var answer = client.Receive();

            Assert.AreEqual(answer.Length, GetFromMe.Count, "didn't receive right");
        }
Example #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");
        }
Example #4
0
        public void Receive()
        {
            var client = new ClientSocket(new ExtendedClientHandshake()
            {
                Origin = "testproject",
                Host = "localhost:8181",
                ResourcePath = "/get"
            });

            var answer = client.Receive();
            Assert.AreEqual(answer.Length, GetFromMe.Count, "didn't receive right");
        }