Exemple #1
0
        public void CakeMailDateTimeConverter_CanConvert_datetime()
        {
            // Arrange
            var type = typeof(DateTime);

            var converter = new CakeMailDateTimeConverter();

            // Act
            var result = converter.CanConvert(type);

            // Assert
            result.ShouldBeTrue();
        }
Exemple #2
0
        public void CakeMailDateTimeConverter_CanConvert_returns_false()
        {
            // Arrange
            var type = typeof(int);

            var converter = new CakeMailDateTimeConverter();

            // Act
            var result = converter.CanConvert(type);

            // Assert
            result.ShouldBeFalse();
        }