예제 #1
0
        public void ReceiveMultipartBytes()
        {
            var expected = m_socket.PushFrame("Hello");

            List <byte[]> actual = m_socket.ReceiveMultipartBytes();

            Assert.Single(actual);
            Assert.Equal(4, actual.Capacity);
            Assert.True(actual[0].SequenceEqual(expected));
            Assert.NotSame(expected, actual[0]);
        }
예제 #2
0
        public void ReceiveMultipartBytes()
        {
            var expected = PushFrame("Hello");

            List <byte[]> actual = m_socket.ReceiveMultipartBytes();

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