public void SerializeDeserializeTest()
        {
            var file = new IniFile();
            var section = file.Sections.Add("Sample Class");

            var serializedClass = new SampleClass();
            serializedClass.Initialize();

            section.Serialize(serializedClass);
            var deserializedClass = section.Deserialize<SampleClass>();

            Assert.IsTrue(serializedClass.Equals(deserializedClass));
        }
Beispiel #2
0
        public void SerializeDeserializeTest()
        {
            var file    = new IniFile();
            var section = file.Sections.Add("Sample Class");

            var serializedClass = new SampleClass();

            serializedClass.Initialize();

            section.Serialize(serializedClass);
            var deserializedClass = section.Deserialize <SampleClass>();

            Assert.IsTrue(serializedClass.Equals(deserializedClass));
        }