pr feedback
authorSteven Kirbach <steven.kirbach@gmail.com>
Wed, 27 Mar 2019 20:14:49 +0000 (13:14 -0700)
committerSteven Kirbach <steven.kirbach@gmail.com>
Wed, 27 Mar 2019 20:14:49 +0000 (13:14 -0700)
Commit migrated from https://github.com/dotnet/corefx/commit/14cb70116924fbbfd15c3fdc6a069833a7d37108

src/libraries/System.IO.Packaging/tests/Tests.cs

index aaa7e419ac04e24959c87ec1138c469ebd2b387e..44275e9fd358cc2472e20e76f5df987f1ca474cd 100644 (file)
@@ -3770,6 +3770,9 @@ namespace System.IO.Packaging.Tests
             Assert.NotNull(part);
             Assert.Equal(part.Uri, partUri);
             Assert.IsType(typeof(MockPackagePart), part);
+
+            // Validate we get the same object back if we call GetPart again
+            Assert.Same(part, mockPackage.GetPart(partUri));
         }
 
         private const string DocumentRelationshipType = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";