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); }
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); }