查看各个版本中的新增内容,包括功能、增强和已解决问题的详细信息。
ComparingNullCollectionsAsEmpty and ComparingNullStringsAsEmpty options to BeEquivalentTo.BeEquivalentTo for large unordered collections.Excluding<T>() and Excluding(Type) overloads to exclude all members of a certain type from equivalency comparisons.BeXmlSerializable and BeDataContractSerializable that allow EquivalencyOptions to be configured, allowing the use of member selection rules.Span<T> / ReadOnlySpan<T> and Be(string) for Span<char> / ReadOnlySpan<char>.BeEqualTo and NotBeEqualTo to the collection assertions as a more fluent alternative to Equal.HaveMillisecond and NotHaveMillisecond assertion methods for DateTime and DateTimeOffset.BeEquivalentTo will now report the missing or extraneous items for differently sized collections.