public void VerifyParseDetails() { var project = new Project(); project = project.ParseDetails(TestHelper.PageSourceGoogleCodeAdamKahtavaCom_ProjectWebsite); Console.WriteLine(project.Description); Assert.AreEqual("The site source in use on Adam.Kahtava.com / AdamDotCom.com (http://adam.kahtava.com/)", project.Description); }
public void VerifyParseLastModifedDateAndLastMessage() { var project = new Project(); var result = project.ParseLastModifiedDate(TestHelper.PageSourceGoogleCodeAdamKahtavaCom_ServicesXML); Assert.IsNotNull(result); Assert.AreNotEqual(null, result.LastMessage); Console.WriteLine(result.LastMessage); Assert.AreNotEqual(null, result.LastModified); Console.WriteLine(result.LastModified); }
public void VerifyGetProjectDetails() { var project = new Project { Name = "project-badge" }; var result = project.GetDetails(TestHelper.PageSourceGitHubAdamDotComProjectBadge_Xml); Assert.IsNotNull(result); Console.WriteLine(result.LastModified); Console.WriteLine(result.LastMessage); Assert.IsFalse(string.IsNullOrEmpty(result.LastModified)); Assert.IsFalse(string.IsNullOrEmpty(result.LastMessage)); }