public void TestMarshallBody() { var body = CreateDummyEventBody(); var raw = body.Marshal(); var newBody = EventBody.Unmarshal(raw); newBody.ShouldCompareTo(body); }
public void TestMarshallBody() { var body = CreateDummyEventBody(); var raw = body.Marshal(); var newBody = EventBody.Unmarshal(raw); newBody.ShouldCompareTo(body); newBody.Transactions.ShouldCompareTo(body.Transactions); newBody.BlockSignatures.ShouldCompareTo(body.BlockSignatures); newBody.Parents.ShouldCompareTo(body.Parents); newBody.Creator.ShouldCompareTo(body.Creator); Assert.Equal(body.Timestamp, newBody.Timestamp); }