public void TimeSpanToTextConverter()
        {
            var converter = new TextTruncateConverter();
            var expected  = "Text...";
            var actual    = converter.Convert("Text test", null, 4, null);

            Assert.Equal(expected, actual);
        }
        public void TextTruncateConverterArgumentException()
        {
            var converter = new TextTruncateConverter();

            Assert.Throws <ArgumentException>(() => converter.Convert(new { a = 1 }, null, null, null));
        }
        public void TimeSpanToTextConverterArgumentExceptionParameter()
        {
            var converter = new TextTruncateConverter();

            Assert.Throws <ArgumentException>(() => converter.Convert("Text", null, new { a = 1 }, null));
        }
        public void TimeSpanToTextConverterArgumentNullException()
        {
            var converter = new TextTruncateConverter();

            Assert.Null(converter.Convert(null, null, null, null));
        }