public void CsvDataLoader_EscapeStringConversion()
        {
            IValueConverter converter = new CsvValueConverter();

            object value = converter.ConvertValue(@"\\", typeof(string));

            value.Should().Be("\\");
        }
        public void CsvDataLoader_CarrageReturnStringConversion()
        {
            IValueConverter converter = new CsvValueConverter();

            object value = converter.ConvertValue(@"\r", typeof(string));

            value.Should().Be("\r");
        }
        public void CsvDataLoader_NullStringConversion()
        {
            IValueConverter converter = new CsvValueConverter();

            object value = converter.ConvertValue(null, typeof(string));

            value.Should().BeNull();
        }
        public void CsvDataLoader_TimespanConversion()
        {
            IValueConverter converter = new CsvValueConverter();

            object value = converter.ConvertValue("3:00:00", typeof(TimeSpan));

            value.Should().Be(TimeSpan.FromHours(3));
        }
        public void CsvDataLoader_InvalidStringConversion()
        {
            IValueConverter converter = new CsvValueConverter();

           converter.ConvertValue(@"\k", typeof(string));
        }
        public void CsvDataLoader_GuidConversion()
        {
            IValueConverter converter = new CsvValueConverter();

            object value = 
                converter.ConvertValue("00000000-0000-0000-0000-000000000000", typeof(Guid));

            value.Should().Be(new Guid());
        }
        public void CsvDataLoader_DateTimeOffsetConversion()
        {
            IValueConverter converter = new CsvValueConverter();

            object value = 
                converter.ConvertValue("03/05/2013 03:00:00 +01:00", typeof(DateTimeOffset));

            value.Should().Be(
                    new DateTimeOffset(
                        new DateTime(2013, 3, 5, 3, 0, 0),
                        new TimeSpan(1, 0, 0)));
        }