Exemplo n.º 1
0
        public void Serialize_Deserialize_RootEntryMatches()
        {
            re1 = CommonEntryTest_TraverseTree.NewTestRootEntry(out de2a, out de2b, out de2c, out de3a, out de4a);

            var ms = new MemoryStream();

            Serializer.Serialize(ms, re1);
            var b = ms.ToArray();

            var newMS = new MemoryStream(b);
            var re2   = Serializer.Deserialize <RootEntry>(newMS);

            var same = re1.SameTree(re2);

            Assert.That(same, Is.True, TreeDuplicate.LastMessage);
        }