6.8.0
What's Changed
New features
- Extend collection assertions with
ContainInConsecutiveOrder
andNotContainInConsecutiveOrder
by @StacyCash in #1963 - Added
NotCompleteWithinAsync
for Task assertions by @lg2de in #1967 - Added assertions for non-generic
TaskCompletionSource
by @lg2de in #1961 - Exposes the
IMonitor
object to extensions methods. by @A-Kjeldgaard in #2010
Improvements
- Optimize
BeEquivalentTo
by @jnyrup in #1939 - Print commas at the end of the line by @ronaldkroon in #1945
- Avoid allocating sub-arrays in
ContainInOrder
by @jnyrup in #1960 - Extend
IObjectInfo
with info aboutDeclaringType
by @dennisdoomen in #1950 - Prepare constructors of
AsyncFunctionAssertions
to make them protected in V7 by @lg2de in #1972 - Calculate the difference between the subject and the expected nearby time by @IT-VBFK in #2013
Fixes
- Filter dynamic methods from stack trace by @jnyrup in #1943
- Make For/Excluding work with nested paths by @whymatter in #1953
- Use InvariantCulture when doing case-insensitive matches by @jnyrup in #1985
- Global record equivalency settings were not taken into account by @dennisdoomen in #1984
- Escape brackets in execution time failures by @Briaoeuidhtns in #1994
Documentation
- More specifically clarify the intentions of
WithArgs
by @jnyrup in #1929 - Remove building link from the website by @IT-VBFK in #1934
- Add
Enum.BeOneOf
to the docs by @jnyrup in #1958 - Document how to use
ModuleInitializer
by @jnyrup in #1966 - Fix a typo on the Assembly References documentation page by @asydikov in #1970
- Update summary of
EquivalencyValidator
by @Wolgo in #1991 - Improve error messages for accidental
Equals
usage by @nycdotnet in #2006
Others
- Upgrade to C# 10 by @jnyrup in #1935
- Use file scoped namespaces by @jnyrup in #1936
- More use of pattern matching and lifted operators by @jnyrup in #1937
- Update nuget packages by @jnyrup in #1962
- Make it possible for third-party libraries to access the underlying collection of instances of
ReadOnlyNonGenericCollectionWrapper
by @logiclrd in #1968 - Code cleanups by @jnyrup in #1973
- Improve coverage for
CollectionMemberObjectInfo
by @dennisdoomen in #1983 - Deduplicate target frameworks by @0xced in #1980
- Removed netcoreapp2.0 framework check in formatting precision tests by @iliashkolyar in #1976
- Rename
ShouldCompareMembersThisDeep
toShouldCompareNodesThisDeep
by @Wolgo in #1992 - Update nuget packages by @jnyrup in #1996
- Cleanups by @jnyrup in #1998
- Update GitHub actions by @jnyrup in #2007
- Fix the PR link in releases.md by @IT-VBFK in #2014
- Prepare 6.8.0 by @jnyrup in #2020
New Contributors
- @StacyCash made their first contribution in #1963
- @asydikov made their first contribution in #1970
- @0xced made their first contribution in #1980
- @Wolgo made their first contribution in #1991
- @Briaoeuidhtns made their first contribution in #1994
- @nycdotnet made their first contribution in #2006
- @A-Kjeldgaard made their first contribution in #2010
Full Changelog: 6.7.0...6.8.0