예제 #1
0
        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);
        }
예제 #2
0
파일: ObjectsTest.cs 프로젝트: kowalot/Bois
		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);
		}