Пример #1
0
        private static void ParseInvalidPackageReference(string reference)
        {
            string name;
            string version;

            Assert.False(NuGetPackageResolverImpl.ParsePackageReference(reference, out name, out version));
            Assert.Null(name);
            Assert.Null(version);
        }
Пример #2
0
        private static void ParseValidPackageReference(string reference, string expectedName, string expectedVersion)
        {
            string name;
            string version;

            Assert.True(NuGetPackageResolverImpl.ParsePackageReference(reference, out name, out version));
            Assert.Equal(expectedName, name);
            Assert.Equal(expectedVersion, version);
        }