An ITypeConverter which can convert a TimeSpan to and from the stored database value of a 64 bit integer column.
Inheritance: ITypeConverter
            public void AnArgumentNullExceptionShouldBeThrown()
            {
                var typeConverter = new TimeSpanTypeConverter();

                var exception = Assert.Throws<System.ArgumentNullException>(
                    () => typeConverter.ConvertFromDbValue(null, 0, typeof(System.TimeSpan)));

                Assert.Equal("reader", exception.ParamName);
            }
            public void AnArgumentNullExceptionShouldBeThrown()
            {
                var typeConverter = new TimeSpanTypeConverter();

                var exception = Assert.Throws<System.ArgumentNullException>(
                    () => typeConverter.ConvertFromDbValue(new Mock<IDataReader>().Object, 0, null));

                Assert.Equal("type", exception.ParamName);
            }
            public void TrueShouldBeReturned()
            {
                var typeConverter = new TimeSpanTypeConverter();

                Assert.True(typeConverter.CanConvert(typeof(System.TimeSpan?)));
            }