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
public class ObjectDataReader<T> : DbDataReader | |
{ | |
private IEnumerator<T> _iterator; | |
private IDictionary<string, int> _propertyNameToOrdinal = new Dictionary<string, int>(); | |
private IDictionary<int, string> _ordinalToPropertyName = new Dictionary<int, string>(); | |
private Func<T, object>[] _getPropertyValueFuncs; | |
public ObjectDataReader(IEnumerator<T> items) | |
{ | |
_iterator = items ?? throw new ArgumentNullException(nameof(items)); |
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
public static class TestHelpers | |
{ | |
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue) | |
{ | |
ShouldEqualWithDiff(actualValue, expectedValue, DiffStyle.Full, Console.Out); | |
} | |
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue, DiffStyle diffStyle) | |
{ | |
ShouldEqualWithDiff(actualValue, expectedValue, diffStyle, Console.Out); |