Releases: fluentassertions/fluentassertions
Releases · fluentassertions/fluentassertions
8.0.0-alpha.1
What's Changed
Others
- Made the equivalency validator core internal by @dennisdoomen in #2854
Full Changelog: 7.0.0-alpha.6...8.0.0-alpha.1
7.0.0
What's Changed
Breaking Changes
- Drop support for .NET Core 2.1, 3.0 and NSpec by @dennisdoomen in #2835
Fixes
- The expectation node identified as a cyclic reference is still compared to the subject node using simple equality. by @dennisdoomen in #2819
- Fix support for write-only properties in BeEquivalentTo by @dennisdoomen in #2836
Documentation
Others
- Use the same Qodana build pipeline as develop is using by @dennisdoomen in #2809
- Add section highlighting for better navigation by @sentemon in #2807
- Bump all relevant dependencies by @dennisdoomen in #2834
- Changed references to the master branch to main by @dennisdoomen in #2848
- Missed two more references to master by @dennisdoomen in #2849
- Backport bump of
System.Configuration.ConfigurationManager
andSystem.Threading.Tasks.Extensions
by @jnyrup in #2856
New Contributors
Full Changelog: 6.12.2...7.0.0
7.0.0-alpha.6
What's Changed
Breaking Changes
- Drop support for .NET Core 2.1, 3.0 and NSpec by @dennisdoomen in #2835
Fixes
- The expectation node identified as a cyclic reference is still compared to the subject node using simple equality. by @dennisdoomen in #2819
- Fix support for write-only properties in BeEquivalentTo by @dennisdoomen in #2836
Documentation
Others
- Bump the xunit group with 2 updates by @dependabot in #2802
- Bump Microsoft.Testing.Extensions.TrxReport from 1.4.1 to 1.4.2 by @dependabot in #2804
- Bump Meziantou.Analyzer from 2.0.176 to 2.0.177 by @dependabot in #2803
- Bump cspell from 8.15.4 to 8.15.7 by @dependabot in #2805
- Better support for default interface and explicitly implemented properties by @dennisdoomen in #2794
- Upmerge 6.12.2 fixes from master by @dennisdoomen in #2808
- Use the same Qodana build pipeline as develop is using by @dennisdoomen in #2809
- Add section highlighting for better navigation by @sentemon in #2807
- Bump cspell from 8.15.7 to 8.16.0 by @dependabot in #2818
- Bump Microsoft.Testing.Extensions.CodeCoverage from 17.12.4 to 17.12.6 by @dependabot in #2816
- Bump the nuke group with 2 updates by @dependabot in #2815
- Bump the mstest group with 2 updates by @dependabot in #2814
- Bump Verify.Xunit from 28.1.3 to 28.2.0 in the xunit group by @dependabot in #2813
- Allow anonymous object for selecting fields/properties at
Exclude
andInclude
by @IT-VBFK in #2488 - Upmerge the changes from master and bumped some dependencies by @dennisdoomen in #2825
- Bump Verify.Xunit from 28.2.0 to 28.3.2 in the xunit group by @dependabot in #2826
- Bump Meziantou.Analyzer from 2.0.179 to 2.0.180 by @dependabot in #2831
- Add support for xUnit.net v3 by @0xced in #2718
- Bump all relevant dependencies by @dennisdoomen in #2834
- Bump TUnit from 0.2.212 to 0.4.1 by @dependabot in #2841
- Bump System.Formats.Asn1 from 8.0.1 to 9.0.0 by @dependabot in #2840
- Bump Microsoft.NET.Test.Sdk and Newtonsoft.Json by @dependabot in #2839
- Changed references to the master branch to main by @dennisdoomen in #2842
- Upmerge from main by @dennisdoomen in #2843
- Changed references to the master branch to main by @dennisdoomen in #2848
- Missed two more references to master by @dennisdoomen in #2849
- Upmerge from master by @dennisdoomen in #2850
- You can exclude explicitly implemented properties from BeEquivalentTo by @dennisdoomen in #2851
- Downgrade
ConfigurationManager
from 6.0.1 to 6.0.0 by @jnyrup in #2855 - Backport bump of
System.Configuration.ConfigurationManager
andSystem.Threading.Tasks.Extensions
by @jnyrup in #2856 - Upmerge main to develop by @jnyrup in #2857
- Remove unnecessary initialization that may also cause deadlocks. by @dennisdoomen in #2858
New Contributors
Full Changelog: 7.0.0-alpha.5...7.0.0-alpha.6
6.12.2
What's Changed
Others
- Better support for default interface and explicitly implemented properties by @dennisdoomen in #2794
Full Changelog: 6.12.1...6.12.2
7.0.0-alpha.5
What's Changed
Breaking Changes
- Improve BeUpperCased/BeLowerCased semantics by @drewjcooper in #2660
- Various naming improvements by @dennisdoomen in #2745
- Redesign AssertionScope and how it travels over chained calls by @dennisdoomen in #2539
- Simplify inheritance of
SubsequentOrderingAssertions
by @vbreuss in #2439
New features
- Add scoped value formatters by @ITaluone in #2676
- TUnit Framework Support by @thomhurst in #2758
Improvements
- Add
[StringSyntax("CompositeFormat")]
to allbecause
parameters by @psychotoad in #2635 - Add support for
Satisfy
onReferenceTypeAssertions
by @siewers in #2597 - Filter the list of events returned by RaisePropertyChangeFor by @arocheleau in #2677
- Add a bunch of assertions on
XElement
andXDocument
by @ITaluone in #2690 - Correctly specify nullability of Subject for
NumericAssertions
by @vbreuss in #2473
Fixes
- Remove non-compliant
StringSyntaxAttribute
by @IT-VBFK in #2669 - Do not use
UsingLineBreaks
for[Not]BeSameAs
by @jnyrup in #2726
Documentation
- Add F# usage docs by @cmeeren in #2309
- Add
[CustomAssertion]
attribute to extensibility docs by @eranikid in #2689 - Updated the sponsors mentioned in the read-me and website by @dennisdoomen in #2714
Others
- Bump Meziantou.Analyzer from 2.0.153 to 2.0.155 by @dependabot in #2663
- Bump the xunit group with 3 updates by @dependabot in #2661
- Bump Roslynator.Analyzers from 4.12.3 to 4.12.4 by @dependabot in #2662
- Bump cspell from 8.8.3 to 8.8.4 by @dependabot in #2670
- Bump Meziantou.Analyzer from 2.0.155 to 2.0.158 by @dependabot in #2675
- Bump the xunit group with 3 updates by @dependabot in #2674
- Bump the xunit group with 3 updates by @dependabot in #2683
- Bump cspell from 8.8.4 to 8.9.1 by @dependabot in #2681
- Bump Machine.Specifications from 1.1.1 to 1.1.2 by @dependabot in #2684
- Improve code coverage in
...Formatter
s by @ITaluone in #2679 - Add missing tests for several
NumericAssertions
by @ITaluone in #2686 - Bump Meziantou.Analyzer from 2.0.158 to 2.0.159 by @dependabot in #2687
- Update FluentAssertions package dependencies by @ViktorHofer in #2673
- Bump cspell from 8.9.1 to 8.10.4 by @dependabot in #2691
- Bump JetBrains.Annotations from 2023.3.0 to 2024.2.0 by @dependabot in #2693
- Bump the xunit group across 1 directory with 3 updates by @dependabot in #2694
- Bump Meziantou.Analyzer from 2.0.159 to 2.0.160 by @dependabot in #2697
- Bump the xunit group with 4 updates by @dependabot in #2696
- Bump Bogus from 35.5.1 to 35.6.0 by @dependabot in #2701
- Bump cspell from 8.10.4 to 8.11.0 by @dependabot in #2702
- Bump Meziantou.Analyzer from 2.0.160 to 2.0.161 by @dependabot in #2700
- Bump the xunit group with 2 updates by @dependabot in #2699
- Bump cspell from 8.11.0 to 8.12.1 by @dependabot in #2708
- Bump Meziantou.Analyzer from 2.0.161 to 2.0.162 by @dependabot in #2707
- Bump NUnit3TestAdapter from 4.5.0 to 4.6.0 in the nunit group by @dependabot in #2706
- Bump the xunit group with 2 updates by @dependabot in #2705
- Bump rexml from 3.2.8 to 3.3.3 in /docs by @dependabot in #2710
- Simplify FrameworkSpecs by @0xced in #2712
- Bump Meziantou.Analyzer from 2.0.162 to 2.0.163 by @dependabot in #2717
- Bump cspell from 8.12.1 to 8.13.1 by @dependabot in #2715
- Bump the xunit group with 2 updates by @dependabot in #2716
- Bump cspell from 8.13.1 to 8.13.3 by @dependabot in #2722
- Bump the xunit group with 2 updates by @dependabot in #2724
- Bump BenchmarkDotNet and System.Collections.Immutable by @dependabot in #2725
- Bump github-pages from 231 to 232 in /docs by @dependabot in #2723
- Fix building Benchmark project by @jnyrup in #2727
- Upmerge from master by @dennisdoomen in #2732
- Bump cspell from 8.13.3 to 8.14.1 by @dependabot in #2736
- Bump rexml from 3.3.5 to 3.3.6 in /docs by @dependabot in #2737
- Bump micromatch from 4.0.7 to 4.0.8 by @dependabot in #2739
- Update to
GitVersion
6.0.2 and fix PR version generation by @IT-VBFK in #2741 - Bump Microsoft.NET.Test.Sdk from 17.10.0 to 17.11.0 by @dependabot in #2743
- Bump NUnit from 4.1.0 to 4.2.1 in the nunit group by @dependabot in #2742
- Bump cspell from 8.14.1 to 8.14.2 by @dependabot in #2744
- Bump SharpCompress from 0.37.2 to 0.38.0 by @dependabot in #2750
- Bump NUnit from 4.2.1 to 4.2.2 in the nunit group by @dependabot in #2749
- Bump the xunit group with 2 updates by @dependabot in #2748
- Backport fixes from develop to v6 by @jnyrup in #2733
- Bump Bogus from 35.6.0 to 35.6.1 by @dependabot in #2753
- Bump the xunit group with 2 updates by @dependabot in #2751
- Bump Microsoft.NET.Test.Sdk from 17.11.0 to 17.11.1 by @dependabot in #2752
- Use new NUKE
.AddUnixSymlink
extension method by @ITaluone in #2756 - Bump the xunit group with 2 updates by @dependabot in #2760
- Bump Roslynator.Analyzers from 4.12.4 to 4.12.5 by @dependabot in #2761
- Bump cspell from 8.14.2 to 8.14.4 by @dependabot in #2764
- Bump Meziantou.Analyzer from 2.0.163 to 2.0.168 by @dependabot in #2763
- Bump JetBrains/qodana-action from 2023.3 to 2024.2 by @dependabot in #2765
- Bump the xunit group with 3 updates by @dependabot in #2762
- update ruby dependencies by @jnyrup in #2766
- Bump Roslynator.Analyzers from 4.12.5 to 4.12.6 by @dependabot in #2770
- Bump Meziantou.Analyzer from 2.0.168 to 2.0.169 by @dependabot in #2769
- Bump xunit from 2.9.1 to 2.9.2 in the xunit group by @dependabot in https:...
6.12.1
What's Changed
Improvements
- Improve
BeEmpty()
andBeNullOrEmpty()
performance forIEnumerable<T>
, by materializing only the first item - #2530
Fixes
- Fixed formatting error when checking nullable
DateTimeOffset
withBeWithin(...).Before(...)
- #2312 BeEquivalentTo
will now find and can map subject properties that are implemented through an explicitly-implemented interface - #2152- Fixed that the
because
andbecauseArgs
were not passed down the equivalency tree - #2318 BeEquivalentTo
can again compare a non-genericIDictionary
with a generic one - #2358- Fixed that the
FormattingOptions
were not respected in innerAssertionScope
- #2329 - Capitalize
true
andfalse
in failure messages and make them formattable to a customBooleanFormatter
- #2390, #2393 - Improved the failure message for
NotBeOfType
when wrapped in anAssertionScope
and the subject is null - #2399 - Improved the failure message for
BeWritable
/BeReadable
when wrapped in anAssertionScope
and the subject is read-only/write-only - #2399 - Improved the failure message for
ThrowExactly[Async]
when wrapped in anAssertionScope
and no exception is thrown - #2398 - Improved the failure message for
[Not]HaveExplicitProperty
when wrapped in anAssertionScope
and not implementing the interface - #2403 - Improved the failure message for
[Not]HaveExplicitMethod
when wrapped in anAssertionScope
and not implementing the interface - #2403 - Changed
BeEquivalentTo
to excludeprivate protected
members from the comparison - #2417 - Fixed using
BeEquivalentTo
on an emptyArraySegment
- #2445, #2511 BeEquivalentTo
with a custom comparer can now handle null values - #2489- Ensured that nested calls to
AssertionScope(context)
create a chained context - #2607 - One overload of the
AssertionScope
constructor would not create an actual scope associated with the thread - #2607 - Fixed
ThrowWithinAsync
not respectingOperationCanceledException
- #2614 - Fixed using
BeEquivalentTo
with anIEqualityComparer
targeting nullable types - #2648
Full Changelog: 6.12.0...6.12.1
7.0.0-alpha.4
What's Changed
Breaking Changes
- Rename
EquivalencyAssertionOptions
toEquivalencyOptions
by @vbreuss in #2414 - Allow fluently calling
WithoutMatchingRules
andWithoutSelectionRules
while usingBeEquivalentTo
by @vbreuss in #2457 - Consolidate namespace and file location by @vbreuss in #2449
New features
- Add BeNaN and NotBeNaN assertions by @arocheleau in #2606
- Add missing
NotBeIn(DateTimeKind)
DateTime
assertion by @IT-VBFK in #2536 - Allow specifying
EquivalencyOptions
in string assertions by @vbreuss in #2413 - Allow event monitoring to ignore failing event accessors by @ITaluone in #2629
Improvements
- Add support for NUnit4 by @vbreuss in #2483
- BeEmpty() materializes IEnumerable only once, even on failure by @louis-z in #2530
- Add [NotNull] attribute on the Should() method for object assertions by @0xced in #2380
- Avoid allocations when chaining contexts by @jnyrup in #2613
- Add option to ignore newline style when comparing strings for equivalency by @vbreuss in #2565
- Allow nested AssertionScopes to chain their context by @dennisdoomen in #2607
Fixes
- Exclude
private protected
members fromBeEquivalentTo
by @jnyrup in #2417 - Fix issue when an empty ArraySegment is a member of a class by @ITaluone in #2511
- Correct null handling when using a custom comparer by @MartinDemberger in #2489
- Avoid treating
"\\r\\n"
as new line. by @vbreuss in #2569 - Make
ThrowWithinAsync
respect canceled tasks by @jnyrup in #2614 - Fixed
BeEquivalentTo
when using a custom comparer targeting nullable types by @arocheleau in #2648
Documentation
- Restore
DateTime
tips by @jnyrup in #2422 - Added more date/time tips by @Meir017 in #2435
- Update release notes WRT recent BeEmpty improvements by @louis-z in #2541
- Document preference of rebase over merge when updating local branches by @vbreuss in #2544
Others
- Cleanup by @jnyrup in #2408
- Simplify the ApiApproval test by @0xced in #2381
- Split ObjectAssertionSpecs in multiple files by @vbreuss in #2416
- Bump Meziantou.Analyzer from 2.0.94 to 2.0.103 by @dependabot in #2421
- Bump Roslynator.Analyzers from 4.6.0 to 4.6.1 by @dependabot in #2420
- Bump the xunit group with 2 updates by @dependabot in #2418
- Bump Microsoft.NET.Test.Sdk from 17.6.3 to 17.7.2 by @dependabot in #2419
- Split NullableNumericAssertionSpecs in multiple files by @vbreuss in #2428
- Split GenericDictionaryAssertionSpecs in multiple files by @vbreuss in #2424
- Split GenericCollectionAssertionOfStringSpecs in multiple files by @vbreuss in #2425
- Split DateTimeOffsetAssertionSpecs in multiple files by @vbreuss in #2426
- Split DateTimeAssertionSpecs in multiple files by @vbreuss in #2427
- Split DateOnlyAssertionSpecs in multiple files by @vbreuss in #2430
- Split TimeOnlyAssertionSpecs in multiple files by @vbreuss in #2429
- Split NumericAssertionSpecs in multiple files by @vbreuss in #2423
- Add EqualityStrategyProvider for
SelfReferenceEquivalencyAssertionOptions
by @vbreuss in #2431 - Bump BenchmarkDotNet from 0.13.9 to 0.13.10 by @dependabot in #2443
- Bump the xunit group with 1 update by @dependabot in #2440
- Bump the nunit group with 1 update by @dependabot in #2441
- Add missing tests for
Configuration
by @vbreuss in #2438 - Bump LibGit2Sharp from 0.27.2 to 0.28.0 by @dependabot in #2442
- Remove unused using directives by @vbreuss in #2447
- Split SelectionRulesSpecs in multiple files by @vbreuss in #2456
- Bump JetBrains.Annotations from 2023.2.0 to 2023.3.0 by @dependabot in #2462
- Bump Meziantou.Analyzer from 2.0.103 to 2.0.109 by @dependabot in #2461
- Bump Microsoft.NET.Test.Sdk from 17.7.2 to 17.8.0 by @dependabot in #2460
- Bump Roslynator.Analyzers from 4.6.1 to 4.6.2 by @dependabot in #2463
- Bump the xunit group with 1 update by @dependabot in #2459
- Avoid possible 'System.NullReferenceException' in
PredicateLambdaExpressionValueFormatter
by @vbreuss in #2453 - Bump cSpell to 8.0.0 by @ITaluone in #2464
- Remove .NET Core 2.1.x and 3.1.x from build SDK setup by @ITaluone in #2467
- Add missing tests for ActionAssertions and DelegateAssertions by @vbreuss in #2454
- Avoid possible 'null' assignment in
CallerIdentifier
by @vbreuss in #2448 - Correct Qodana
failThreshold
by @IT-VBFK in #2437 - Add
releases.md
to solution items by @vbreuss in #2469 - Avoid variable in local function that hides variable from outer scope by @vbreuss in #2471
- Disable qodana rules in poly fills by @ITaluone in #2468
- Run tests under .NET 8 by @vbreuss in #2466
- Use Qodana EAP to support .NET 8 by @vbreuss in #2474
- Bump Meziantou.Analyzer from 2.0.109 to 2.0.110 by @dependabot in #2477
- Bump the xunit group with 3 updates by @dependabot in #2475
- Bump Microsoft.SourceLink.GitHub from 1.1.1 to 8.0.0 by @dependabot in #2476
- Bump Roslynator.Analyzers from 4.6.2 to 4.6.4 by @dependabot in #2487
- Bump Meziantou.Analyzer from 2.0.110 to 2.0.112 by @dependabot in #2486
- Bump the xunit group with 1 update by @dependabot in #2484
- Update the required minimum VS version by @ITaluone in #2491
- Bump PolySharp from 1.13.2 to 1.14.0 by @dependabot in #2503
- Bump Meziantou.Analyzer from 2.0.112 to 2.0.118 by @dependabot in #2502
- Switch back to the release version of Qodana (to officially support .NET 8) by @dennisdoomen in #2495
- Bump LibGit2Sharp from 0.28.0 to 0.29.0 by @dependabot in #2500
- Bump actions/setup-dotnet from 3 to 4 by @dependabot in #2498
- Bump cspell from 8.0.0 to 8.1.2 by @dependabot in #2497
- Bump Roslynator.Analyzers from 4.6.4 to...
7.0.0-alpha.3
Internal release needed to continue working on FluentAssertions.DataSets.
7.0.0-alpha.2
Internal release needed to continue working on FluentAssertions.DataSets.
7.0.0-alpha.1
Internal release needed to continue working on FluentAssertions.DataSets.