예제 #1
0
        public void WriteXml_ReadXml_SavesFile()
        {
            var objectIn = new TestObject {
                Name = TestObjectName
            };

            ConfigSerializer.WriteXml(_testFilePath, objectIn);

            TestObject objectOut = ConfigSerializer.ReadXml(_testFilePath, objectIn);

            Assert.AreEqual(TestObjectName, objectOut.Name);
        }
예제 #2
0
 public void WriteXml_NoFile_NoError()
 {
     ConfigSerializer.ReadXml(_testFilePath, new TestObject());
 }