Beispiel #1
0
        public void TestCreateAndRestoreXml()
        {
            string       name      = "Test";
            string       workspace = "Base";
            TestInstance i         = new TestInstance();

            i.Name      = name;
            i.Workspace = workspace;
            XElement     xml = i.CreateXml();
            TestInstance i2  = new TestInstance();

            i2.Restore(xml);

            Assert.AreEqual(i.Name, i2.Name);
            Assert.AreEqual(i.Type, i2.Type);
            Assert.AreEqual(i.Workspace, i2.Workspace);
        }