public void PrimitiveFieldsClassTest()
        {
            PrimitiveFields obj1 = new PrimitiveFields();

            obj1.Setup();

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

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

            PrimitiveFields obj1 = new PrimitiveFields();

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

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

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