public void ConvertTo_TypeError2()
        {
            TimeSpanSecondsConverter cv = new TimeSpanSecondsConverter();
            TimeSpan ts;

            ts = TimeSpan.FromSeconds(59);

            Assert.Equal("59", cv.ConvertTo(null, null, ts, typeof(int)));
            Assert.Equal("59", cv.ConvertTo(null, null, ts, null));
        }
        public void ConvertTo()
        {
            TimeSpanSecondsConverter cv = new TimeSpanSecondsConverter();
            TimeSpan ts;

            ts = TimeSpan.FromSeconds(59);
            Assert.Equal("59", cv.ConvertTo(null, null, ts, typeof(string)));

            ts = TimeSpan.FromSeconds(144);
            Assert.Equal("144", cv.ConvertTo(null, null, ts, typeof(string)));

            ts = TimeSpan.FromMilliseconds(3900);
            Assert.Equal("3", cv.ConvertTo(null, null, ts, typeof(string)));
        }
        public void ConvertTo_NullError()
        {
            TimeSpanSecondsConverter cv = new TimeSpanSecondsConverter();

            Assert.Throws <NullReferenceException>(() => cv.ConvertTo(null, null, null, typeof(string)));
        }
        public void ConvertTo_TypeError1()
        {
            TimeSpanSecondsConverter cv = new TimeSpanSecondsConverter();

            AssertExtensions.Throws <ArgumentException>(null, () => cv.ConvertTo(null, null, 59, typeof(string)));
        }
        public void ConvertTo_TypeError1()
        {
            TimeSpanSecondsConverter cv = new TimeSpanSecondsConverter();

            Assert.AreEqual("59", cv.ConvertTo(null, null, 59, typeof(string)), "A1");
        }