PR Feedback
authorSteven Kirbach <steven.kirbach@gmail.com>
Wed, 27 Mar 2019 19:04:15 +0000 (12:04 -0700)
committerSteven Kirbach <steven.kirbach@gmail.com>
Wed, 27 Mar 2019 19:04:15 +0000 (12:04 -0700)
Commit migrated from https://github.com/dotnet/corefx/commit/ddbae8b0b8ffc092ba24badb355bed204c249583

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

index d65c86f..aaa7e41 100644 (file)
@@ -3757,15 +3757,15 @@ namespace System.IO.Packaging.Tests
         }
 
         [Fact]
-        public void SupportNonPartEnumerableDerivedPackageTypes()
+        public void GetPartCallsGetPartCore()
         {
             // Package is an abstract class that others can derive from. Those derived classes can override GetPartsCore and potentially not
             // return anything. Furthermore, it is not guaranteed that GetPartsCore will have been called if the package wasn't created using
             // the Package.Open API, which only ensures that ZipPackage's internal data structures are filled in.
-            var mockPackage = new NonEnumerablePackage();
+            NonEnumerablePackage mockPackage = new NonEnumerablePackage();
 
-            var partUri = new Uri("/idontexist.xml", UriKind.Relative);
-            var part = mockPackage.GetPart(partUri);
+            Uri partUri = new Uri("/idontexist.xml", UriKind.Relative);
+            PackagePart part = mockPackage.GetPart(partUri);
 
             Assert.NotNull(part);
             Assert.Equal(part.Uri, partUri);