blob: c4847cdbe9e3db302e3ba93c7b670e2db7f232ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
using CsvHelper.Configuration;
using CsvHelper.Configuration.Attributes;
using System.Globalization;
using Xunit;
namespace CsvHelper.Tests.Mappings.Attribute
{
public class CountBytesTest
{
[Fact]
public void ConstructorAttributeTest()
{
var config = new CsvConfiguration(CultureInfo.InvariantCulture, typeof(Foo));
Assert.True(config.CountBytes);
}
[CountBytes(true)]
private class Foo { }
}
}
|