Skip to content

0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Feb 02:36
0cca3b0
[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