public void Formats_Draft_Date(string expected, string validDateString) { string actual = ProspectScraper.ChangeDateStringToDateTime(validDateString, true).ToString("yyyy-MM-dd"); //Assert Assert.Equal(expected, actual); }
public void Formats_Draft_Date() { //Arrange string expected = "2019-05-21"; string actual = ProspectScraper.ChangeDateStringToDateTime(ValidDateString, true).ToString("yyyy-MM-dd"); //Assert Assert.Equal(expected, actual); }
public void Draft_Date_Defaults_To_Today() { //Arrange string expected = DateTime.Now.ToString("yyyy-MM-dd"); string actual = ProspectScraper.ChangeDateStringToDateTime(InvalidDateString, true).ToString("yyyy-MM-dd"); //Assert Assert.Equal(expected, actual); }