Ejemplo n.º 1
0
        public void Parse_ValidPackageFileWithMultiLineSummary_StoresSummary()
        {
            var targetSummary = "summarising our package\nacross multiple lines\nhere";
            var packageFile   = CreatePackageFile("name", "version", targetSummary);

            var parsedPackage = PackageFileParser.Parse(packageFile);

            Assert.AreEqual(targetSummary, parsedPackage.Summary);
        }
Ejemplo n.º 2
0
        public void Parse_ValidPackageFile_StoresVersion()
        {
            var targetVersionString = "1";
            var packageFile         = CreatePackageFile("name", targetVersionString);

            var parsedPackage = PackageFileParser.Parse(packageFile);

            Assert.AreEqual(targetVersionString, parsedPackage.VersionString);
        }
Ejemplo n.º 3
0
        public void Parse_ValidPackageFileWithSingleLineSummary_StoresSummary()
        {
            var targetSummary = "summarising our package";
            var packageFile   = CreatePackageFile("name", "version", targetSummary);

            var parsedPackage = PackageFileParser.Parse(packageFile);

            Assert.AreEqual(targetSummary, parsedPackage.Summary);
        }
Ejemplo n.º 4
0
        public void Parse_ValidPackageFile_StoresName()
        {
            string packageName = "foo";
            var    packageFile = CreatePackageFile(packageName);

            var parsedPackage = PackageFileParser.Parse(packageFile);

            Assert.AreEqual(packageName, parsedPackage.Name);
        }