Exemple #1
0
        public void Disposed5()
        {
            HttpListener listener = new HttpListener();
            HLPC         coll     = listener.Prefixes;

            listener.Close();
            string [] strs = new string [0];
            coll.CopyTo(strs, 0);
        }
Exemple #2
0
        public void PercentSign()
        {
            HttpListener listener = new HttpListener();
            HLPC         coll     = listener.Prefixes;

            // this one throws on Start(), not when adding it.
            // See same test name in HttpListenerTest.
            coll.Add("http://localhost:7777/hola%3E/");
            string [] strs = new string [1];
            coll.CopyTo(strs, 0);
            Assert.AreEqual("http://localhost:7777/hola%3E/", strs [0]);
        }