public void ObjectCollectionContainer_Normal() { var init = new ObjectCollectionContainer(); init.Initialize(); ObjectCollectionContainer final; using (var mem = new MemoryStream()) { _bois.Serialize(init, mem); mem.Seek(0, SeekOrigin.Begin); final = _bois.Deserialize <ObjectCollectionContainer>(mem); } AssertionHelper.AssertMembersAreEqual(init, final); }
public void ObjectCollectionContainer_Normal() { var init = new ObjectCollectionContainer(); init.Initialize(); ObjectCollectionContainer final; using (var mem = new MemoryStream()) { _bois.Serialize(init, mem); mem.Seek(0, SeekOrigin.Begin); final = _bois.Deserialize<ObjectCollectionContainer>(mem); } AssertionHelper.AssertMembersAreEqual(init, final); }