// The file names in the zip archive are not prepended with '/'
foreach (string file in archive.GetFiles ()) {
+ if (file.Equals (ContentUri, StringComparison.Ordinal))
+ continue;
+
XmlNode node;
CompressionOption compression = archive.GetCompressionLevel (file);
}\r
\r
[Test]\r
- [ExpectedException (typeof (ArgumentException))]\r
- [Ignore ("Proper validation of the Uris is not performed")]\r
public void CheckContentTypes ()\r
{\r
- package.PartExists(new Uri ("/[Content_Types].xml", UriKind.Relative));\r
+ Assert.IsFalse (package.PartExists(new Uri ("[Content_Types].xml", UriKind.Relative)));\r
}\r
}\r
}\r