public void HandleNull()
        {
            var converter = new TimeSpanConverter();

            var result = converter.Convert(null);

            Assert.Null(result);
        }
        public void SupportTimeSpans()
        {
            var converter = new TimeSpanConverter();

            var result = converter.SupportedTypes;

            Assert.Contains(typeof(TimeSpan), result);
            Assert.Contains(typeof(TimeSpan?), result);
        }
        public void HandleNullableTimeSpansWithNoValue()
        {
            TimeSpan? input = null;

            var converter = new TimeSpanConverter();

            var result = converter.Convert(input);

            Assert.Null(result);
        }
        public void HandleTimeSpans()
        {
            TimeSpan input = new TimeSpan(12220);

            var converter = new TimeSpanConverter();

            var result = converter.Convert(input);

            Assert.Equal(1.22, result);
        }