public void IsCallback_Returns_False_On_MethodResponse() { XmlRpcIO io = fixture.NewIO(fixture.MethodResponseBytes); MessageHeader header = MessageHeader.FromIOAsync(io).GetAwaiter().GetResult(); Assert.False(header.IsCallback); }
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); }
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); }