Пример #1
0
        public void DeserializeInvAndLoadBackIn()
        {
            var writer = XmlWriter.Create(_path, CanonicalXmlSettings.CreateXmlWriterSettings());

            MakeSampleInventory().Write(writer);
            writer.Close();
            var f = new ViewTemplate();

            f.Load(_path);
            Assert.IsNotNull(f);
            CheckInventoryMatchesDefinitionInResource(f);
        }
Пример #2
0
		public void DeserializeInvAndLoadBackIn()
		{
			XmlWriter writer = XmlWriter.Create(_path);
			MakeSampleInventory().Write(writer);
			writer.Close();
			ViewTemplate f = new ViewTemplate();
			f.Load(_path);
			Assert.IsNotNull(f);
			CheckInventoryMatchesDefinitionInResource(f);
		}