Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add IgnoreUnknownColumns to CsvFileDescription
- Modify article.htm to document the changes - Add unit test to make sure the new functionality works - Add ToString() method in `TypeFieldInfo` class for better debugging
- Loading branch information
Showing
6 changed files
with
204 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
namespace LINQtoCSV.Tests | ||
{ | ||
public class Person : IAssertable<Person> { | ||
[CsvColumn(Name = "Name")] | ||
public string Name { get; set; } | ||
[CsvColumn(Name = "Last Name")] | ||
public string LastName { get; set; } | ||
[CsvColumn(Name = "Age")] | ||
public int Age { get; set; } | ||
|
||
public void AssertEqual(Person other) { | ||
Assert.AreEqual(other.Name, Name); | ||
Assert.AreEqual(other.LastName, LastName); | ||
Assert.AreEqual(other.Age, Age); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters