Beispiel #1
0
        public void ResxDocumentToXmlWithChanges()
        {
            var test1 = new ResxDocument(TestUtils.LoadTest1());

            test1.Data.Add(new ResxData {
                Name  = "Test_key_4",
                Value = "Test value 4",
                Space = "preserve"
            });
            Assert.AreEqual(TestUtils.LoadTest2().ToString(), test1.ToXml().ToString());
        }
Beispiel #2
0
        public void ResxDocumentToXml()
        {
            var test1 = new ResxDocument(TestUtils.LoadTest1());

            Assert.AreEqual(TestUtils.LoadTest1().ToString(), test1.ToXml().ToString());
        }