public void PrimitivePropertiesClassTest()
        {
            PrimitiveProperties obj1 = new PrimitiveProperties();

            obj1.Setup();

            byte[] bytes = _serializer.Serialize(obj1);
            obj1.ClearStatic();
            PrimitiveProperties obj2 = _serializer.Deserialize <PrimitiveProperties>(bytes);

            if (!_compare.Compare(obj1, obj2))
            {
                throw new Exception(_compare.DifferencesString);
            }
        }
        public void PrimitivePropertiesListTest()
        {
            List <PrimitiveProperties> list1 = new List <PrimitiveProperties>();

            PrimitiveProperties obj1 = new PrimitiveProperties();

            obj1.Setup();
            list1.Add(obj1);

            byte[] bytes = _serializer.Serialize(list1);
            obj1.ClearStatic();
            List <PrimitiveProperties> list2 = _serializer.Deserialize <List <PrimitiveProperties> >(bytes);

            if (!_compare.Compare(list1, list2))
            {
                throw new Exception(_compare.DifferencesString);
            }
        }