blob: a1600015e3ed1736c1755f5ee3311040afa88542 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
using CsvHelper.Configuration;
using CsvHelper.Configuration.Attributes;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace CsvHelper.Tests.Mappings.Attribute
{
public class DetectDelimiterValuesTests
{
[Fact]
public void ConstructorAttributeTest()
{
var config = new CsvConfiguration(CultureInfo.InvariantCulture, typeof(Foo));
Assert.Equal(new[] { "a", "b" }, config.DetectDelimiterValues);
}
[DetectDelimiterValues("a b")]
private class Foo { }
}
}
|