public void CommaInDatesAreRemoved() { var text = "This is it, text with commas, and Sunday, 1 July, 2018"; var result = new HouseStyleDateFormatter().FormatHtml(text); Assert.AreEqual("This is it, text with commas, and Sunday 1 July 2018", result); }
public void RemoveOrdinalsFromDates() { var text = "This is the 1st Test, about 1st June 2019"; var result = new HouseStyleDateFormatter().FormatHtml(text); Assert.AreEqual("This is the 1st Test, about 1 June 2019", result); }
public void AmericanDateIsPutInASensibleOrder() { var text = "A date like April 1 2017 is always wrong"; var result = new HouseStyleDateFormatter().FormatHtml(text); Assert.AreEqual("A date like 1 April 2017 is always wrong", result); }