示例#1
0
        public void IsCallback_Returns_False_On_MethodResponse()
        {
            XmlRpcIO io = fixture.NewIO(fixture.MethodResponseBytes);

            MessageHeader header = MessageHeader.FromIOAsync(io).GetAwaiter().GetResult();

            Assert.False(header.IsCallback);
        }
示例#2
0
        public void FromIOAsync_Correctly_Parses_MethodResponse_Message()
        {
            XmlRpcIO io = fixture.NewIO(fixture.MethodResponseBytes);

            MessageHeader header = MessageHeader.FromIOAsync(io).GetAwaiter().GetResult();

            Assert.Equal(159, header.MessageLength);
            Assert.Equal(0x80000004, header.Handle);
        }
示例#3
0
        public void FromIOAsync_Correctly_Parses_MethodCall_Message()
        {
            XmlRpcIO io = fixture.NewIO(fixture.MethodCallHeaderBytes);

            MessageHeader header = MessageHeader.FromIOAsync(io).GetAwaiter().GetResult();

            Assert.Equal(1123, header.MessageLength);
            Assert.Equal((uint)5, header.Handle);
        }