public void SerializeDeserialize_Ints_WorksCorrectly()
        {
            var p    = new XMLEnumerablePersister <int>();
            var data = p.Serialize(_arrayOfInts);
            var res  = p.Deserialize(data).ToArray();

            for (var i = 0; i < res.Length; ++i)
            {
                Assert.AreEqual(res[i], _arrayOfInts[i]);
            }
        }
        public void DeserializeDeserialize_InstancesOfA_WorksCorrectly()
        {
            var p    = new XMLEnumerablePersister <A>();
            var data = p.Serialize(_arrayOfA);
            var res  = p.Deserialize(data).ToArray();

            for (var i = 0; i < res.Length; ++i)
            {
                Assert.AreEqual(res[i].Id, _arrayOfA[i].Id);
            }
        }
        public void SerializeDeserialize_Strings_WorksCorrectly()
        {
            var p    = new XMLEnumerablePersister <string>();
            var data = p.Serialize(_listOfStrings);
            var res  = p.Deserialize(data).ToArray();

            Assert.IsNotNull(res);
            Assert.AreEqual(_listOfStrings.Count(), res.Count());
            for (var i = 0; i < res.Length; ++i)
            {
                Assert.AreEqual(res[i], _listOfStrings[i]);
            }
        }