public void PrivateTypesAreSerializedUsingNaiveSerializer()
        {
            PrivateModel item = new PrivateModel {
                Name = "CSV Serializer"
            };
            string csv = CsvSerializer.Serialize(new[] { item }, withHeaders: true);

            csv.Should().Be("\"Name\"\r\n\"CSV Serializer\"");
        }
        public void CsvCanBeDeserializedToPrivateType()
        {
            string csv = "\"Name\"\r\n\"CSV Serializer\"";

            PrivateModel[] items = CsvSerializer.Deserialize <PrivateModel>(csv, hasHeaders: true);
            items.Length.Should().Be(1);
            PrivateModel item = items.Single();

            item.Name.Should().Be("CSV Serializer");
        }