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);
            }
            public void and_the_type_being_evaluated_is_a_DateTime_then_it_should_be_applied()
            {
                // Arrange
                var blogType = typeof (Blog);
                var sut = new DateTimeToyyyyMMdd();

                // Act
                var shouldBeApplied = sut.ShouldBeApplied(blogType, blogType.GetProperty("CreatedDate"), new Blog());

                // Assert
                Assert.IsTrue(shouldBeApplied);
            }