public void TestQuickXmlSerializer()
        {
            QuickXmlSerializerTestClass testObj = new QuickXmlSerializerTestClass {
                Value = "lol", Number = 1
            };
            string xml = QuickXmlSerializer.SerializeObject(testObj);

            Assert.IsNotNull(xml);

            QuickXmlSerializerTestClass deserializedObj = QuickXmlSerializer.DeserializeObject <QuickXmlSerializerTestClass>(xml);

            Assert.AreEqual(testObj, deserializedObj);
        }
        public ConfigurationItem RetrieveConfiguration()
        {
            try
            {
                CreateConfigFileIfNecessary();
                string            xml  = File.ReadAllText(ConfigFilePath);
                ConfigurationItem item = QuickXmlSerializer.DeserializeObject <ConfigurationItem>(xml);

                if (!CheckConfiguration(item))
                {
                    throw new ArgumentException("Some errors occurred in retrieving the configuration");
                }

                return(item);
            }
            catch (Exception ex)
            {
                throw new ArgumentException("Some errors occurred in retrieving the configuration", ex);
            }
        }