public void WriteMultipleTest()
{
Delete();
var configFile = new ConfigFile <Configuration>(FilePath);
var one = new TestConfigSection()
{
Value = 1
};
var two = new AnotherConfigSection()
{
Number = 2
};
configFile.Write(one, two);
Assert.AreEqual(1, configFile.Read <TestConfigSection>().Value);
Assert.AreEqual(2, configFile.Read <AnotherConfigSection>().Number);
Delete();
var three = new AThirdSection()
{
Int = 3
};
configFile.Write(one, two, three);
Assert.AreEqual(1, configFile.Read <TestConfigSection>().Value);
Assert.AreEqual(2, configFile.Read <AnotherConfigSection>().Number);
Assert.AreEqual(3, configFile.Read <AThirdSection>().Int);
}