You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
[WIP] Omnibus: heavy testing, enhancements, documentation, etc etc (#4)
Documentation:
* added links to NuGet and GitHub source in both READMEs
* document the equals rules
Non-functional changes:
* `RecordCollectionNewtonsoftJsonConverter<T>#WriteJson()` is effectively inaccessible, so it throws `NotSupportedException`
* move static class to its own file
* marked all pure methods as `[Pure]`
Functional changes:
* `RecordCollection` now extends `IList`, the non-generic one
* enhancements to `IStructuralEquality`
- supports type-optimized checks, RecordCollection checks, cross-type checks and fallback to deoptimized `IStructuralEquatable#GetHashCode()` checks.
* trying to index-set is a compiler error
* New methods:
- `As<TOther>()`
- `UntypedSequenceEqual(IEnumerable, IEqualityComparer)` compares sequences regardless of type.
- `static RecordCollection<T>.CastUp(RecordCollection<TDerived>)`
* New extension methods:
- `SequenceEqual` against related type in a collection or enumerable using an `IEqualityComparer` or a function.
- Optimized versions of `Select`, `Where`, `ToDictionary`, and `ToArray`
Testing:
* 100% code coverage
* all tests/classes converted to static
* introduce Moq (yeah yeah)
* code coverage reporter