public void Deserialize_UDS() { var stream = Resources.GetResourceAsStream("TestFile.uds"); var zip = new ZipArchive(stream, ZipArchiveMode.Read); var uds = UnifiedDataStandardFile.Read(zip); Assert.IsTrue(uds != null); }
public void Serialize_UDS() { var uds = TestModels.TestUnifiedDataStandardFile; var zip = uds.Write(); var reparse = new ZipArchive(new MemoryStream(zip), ZipArchiveMode.Read); var reparsedUDs = UnifiedDataStandardFile.Read(reparse); Assert.IsTrue(reparsedUDs != null); }