Example #1
0
 protected override PackagePart CreatePartCore (Uri partUri, string contentType, CompressionOption compressionOption)
 {
     FakePackagePart p = new FakePackagePart (this, partUri, contentType, compressionOption);
     Parts.Add (p.Uri, p);
     CreatedParts.Add (partUri);
     return p;
 }
 public void Constructor3 ()
 {
     FakePackagePart p = new FakePackagePart (null, uris [0]);
 }
 public void Constructor2 ()
 {
     FakePackagePart p = new FakePackagePart (package, null);
 }
 public void Constructor1 ()
 {
     FakePackagePart p = new FakePackagePart (null, null);
 }
 public override void Setup ()
 {
     base.Setup ();
     part = (FakePackagePart) new FakePackagePart(package, uris [0], contentType);
 }
 public void PackagePartNoContentType ()
 {
     string s = new FakePackagePart (package, uris [0]).ContentType;
 }