예제 #1
0
        public void CloseSocket()
        {
            //Start a server and client
            Server            server = new Server(2000, new string[] { "200", "dictionary.txt" });
            BoggleClientModel model  = new BoggleClientModel();

            Assert.IsTrue(model.Connect("localhost", 2000, "hey"));

            model.CloseClient();

            try
            {
                model.SendWord("Test");
                Assert.Fail();
            }
            catch
            { }

            server.CloseServer();
        }