public void and_the_value_is_a_null_then_the_value_should_be_formatted_as_an_empty_string() { // Arrange var sut = new DateTimeToyyyyMMdd(); // Act var applied = sut.Apply(null); // Assert Assert.AreEqual("", applied); }
public void and_the_value_is_a_DateTime_then_the_value_should_be_formatted() { // Arrange var sut = new DateTimeToyyyyMMdd(); // Act var applied = sut.Apply(new DateTime(2013, 1, 1)); // Assert Assert.AreEqual("20130101", applied); }