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)); }
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)); }