public void ShouldUnpackRelationshipCorrectly() { var bytes = "00 07 B5 52 01 02 03 80 a0 00 00".ToByteArray(); var mockTcpSocketClient = new Mock <ITcpSocketClient>(); SetupClientReadStream(mockTcpSocketClient, bytes); PackStreamMessageFormatV1.ReaderV1 reader = (PackStreamMessageFormatV1.ReaderV1) new PackStreamMessageFormatV1(mockTcpSocketClient.Object, null).Reader; var real = reader.UnpackValue(); IRelationship rel = real as IRelationship; rel.Should().NotBeNull(); rel.Id.Should().Be(1); rel.StartNodeId.Should().Be(2); rel.EndNodeId.Should().Be(3); rel.Type.Should().BeEmpty(); rel.Properties.Should().BeEmpty(); }