public void TargetType()
        {
            // Arrange
            IConverter converter = new UriConverter();
            var expectedType = typeof (Uri);

            // Act
            var actualType = converter.TargetType;

            // Assert
            Assert.Equal(expectedType, actualType);
        }
        public void RelativeConversion()
        {
            // Arrange
            IConverter converter = new UriConverter();
            var value = "hello";
            var expectedValue = new Uri("hello", UriKind.Relative);

            // Act
            var actualValue = converter.Convert(value, converter.TargetType);

            // Assert
            Assert.NotNull(actualValue);
            Assert.IsType<Uri>(actualValue);
            Assert.Equal(expectedValue, (Uri) actualValue);
        }
        public void AbsoluteConversion()
        {
            // Arrange
            IConverter converter = new UriConverter();
            var value = "http://mgrcommandlineparser.codeplex.com";
            var expectedValue = new Uri("http://mgrcommandlineparser.codeplex.com");

            // Act
            var actualValue = converter.Convert(value, converter.TargetType);

            // Assert
            Assert.NotNull(actualValue);
            Assert.IsType<Uri>(actualValue);
            Assert.Equal(expectedValue, (Uri) actualValue);
        }