Repository navigation
Releases
Releases · BaryoDev/Vouch
Vouch v0.2.0
Func<ValueTask>andFunc<ValueTask<T>>now have their ownShouldoverloads, soThrow,NotThrow,ThrowAsyncandNotThrowAsyncsee the exception (#22)..WhichafterNotThrow()on aFunc<ValueTask<T>>is nowTinstead of theValueTask, and the syncThrowandNotThrowrun the delegate on a thread-pool thread.- Failure messages cut each string and each
ToStringresult at 200 characters, and sequences that do not know their size are no longer walked to the end (#24). A cut never splits a surrogate pair. Half.NaN.Should().BeLessThan(...)and the other three ordering assertions on values without a numericShouldoverload now fail when either side is NaN (#25).BeEquivalentTostays fast on graphs that share references and on large unordered collections of types with their own equality (#23).
Vouch v0.1.0
First release.
.Should()for objects, bools, numbers, nullable numbers, strings, dates (DateTime,DateTimeOffset,DateOnly), collections, dictionaries and delegates.BeEquivalentTocompares member by member, any order unlessWithStrictOrdering, and lists every difference with its member path.Throw<T>,ThrowAsync<T>,NotThrow,NotThrowAsync, withWithMessage,WithParameterNameandWhich..And,.Whichand.Subjectchains.- An optional reason string on most assertions, appended to the failure message.
- One
VouchExceptiontype. Vouch references no test framework. Failures show as plain test failures in xUnit v2, xUnit v3, NUnit and MSTest. - No runtime dependencies. Targets
net8.0andnet10.0.