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); }
public void Parse_ValidPackageFile_StoresVersion() { var targetVersionString = "1"; var packageFile = CreatePackageFile("name", targetVersionString); var parsedPackage = PackageFileParser.Parse(packageFile); Assert.AreEqual(targetVersionString, parsedPackage.VersionString); }
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); }
public void Parse_ValidPackageFile_StoresName() { string packageName = "foo"; var packageFile = CreatePackageFile(packageName); var parsedPackage = PackageFileParser.Parse(packageFile); Assert.AreEqual(packageName, parsedPackage.Name); }