public void ReceiveMultipartStrings()
        {
            const string expected = "Hello";

            m_socket.PushFrame(expected);

            List <string> actual = m_socket.ReceiveMultipartStrings();

            Assert.Single(actual);
            Assert.Equal(4, actual.Capacity);
            Assert.Equal(expected, actual[0]);
            Assert.NotSame(expected, actual[0]);
        }
Example #2
0
        public void ReceiveMultipartStrings()
        {
            const string expected = "Hello";

            PushFrame(expected);

            List <string> actual = m_socket.ReceiveMultipartStrings();

            Assert.AreEqual(1, actual.Count);
            Assert.AreEqual(4, actual.Capacity);
            Assert.AreEqual(expected, actual[0]);
            Assert.AreNotSame(expected, actual[0]);
        }