Skip to content
This repository was archived by the owner on Nov 10, 2026. It is now read-only.

docs: rewrite the FluentAssertions comparison as a neutral, accurate catalog - #313

Merged
vbreuss merged 2 commits into
mainfrom
docs/fluentassertions-comparison-symmetry
Jun 4, 2026
Merged

vbreuss merged 2 commits into
mainfrom
docs/fluentassertions-comparison-symmetry

Conversation

@vbreuss

@vbreuss vbreuss commented Jun 4, 2026

Copy link
Copy Markdown
Member

Restructure Docs/pages/01-fluentassertions-comparison.md around reflection targets (assembly, type, method, property, constructor, field, event), each with a capability summary and side-by-side examples ordered FluentAssertions then aweXpect.Reflection.

  • Replace fabricated FluentAssertions APIs (e.g. HaveAssemblyName, BeClass, BePublic, HaveName, HasAttribute) with ones verified against the source, and record the real coverage gaps on both sides.
  • Add a conceptual-model paragraph and a depth-aware coverage matrix (dedicated / general-mechanism / none) instead of the previous all-equal grid.
  • Keep the comparison neutral (no recommendations) and free of em-dashes.

The aweXpect.Reflection examples are compile-verified against the library.

…catalog

Restructure Docs/pages/01-fluentassertions-comparison.md around reflection
targets (assembly, type, method, property, constructor, field, event), each
with a capability summary and side-by-side examples ordered FluentAssertions
then aweXpect.Reflection.

- Replace fabricated FluentAssertions APIs (e.g. HaveAssemblyName, BeClass,
  BePublic, HaveName, HasAttribute) with ones verified against the source,
  and record the real coverage gaps on both sides.
- Add a conceptual-model paragraph and a depth-aware coverage matrix
  (dedicated / general-mechanism / none) instead of the previous all-equal grid.
- Keep the comparison neutral (no recommendations) and free of em-dashes.

The aweXpect.Reflection examples are compile-verified against the library.
@vbreuss vbreuss self-assigned this Jun 4, 2026
@vbreuss vbreuss added the documentation Improvements or additions to documentation label Jun 4, 2026
Type.GetField(string) uses public-only binding flags and returns null for
a private field, so the FluentAssertions snippet threw and the
aweXpect.Reflection snippet asserted against a null subject. Pass
BindingFlags.Instance | BindingFlags.NonPublic in both Field examples.
@github-actions

github-actions Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

Test Results

    13 files  ±0      13 suites  ±0   7m 20s ⏱️ - 2m 31s
 6 085 tests ±0   6 082 ✅ ±0   3 💤 ±0  0 ❌ ±0 
36 355 runs  ±0  36 342 ✅ ±0  13 💤 ±0  0 ❌ ±0 

Results for commit 0bc1e4a. ± Comparison against base commit b45d1fd.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.75GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.300
[Host] : .NET 10.0.8 (10.0.8, 10.0.826.23019), X64 RyuJIT x86-64-v3
DefaultJob : .NET 10.0.8 (10.0.8, 10.0.826.23019), X64 RyuJIT x86-64-v3

Method Mean Error StdDev Gen0 Allocated
TypeIsNotStatic_aweXpect 217.8 ns 1.66 ns 1.47 ns 0.0386 648 B

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

👽 Mutation Results

Mutation testing badge

aweXpect.Reflection

Details
File Score Killed Survived Timeout No Coverage Ignored Compile Errors Total Detected Total Undetected Total Mutants

The final mutation score is NaN%

Coverage Thresholds: high:80 low:60 break:0

@vbreuss
vbreuss enabled auto-merge (squash) June 4, 2026 14:23
@sonarqubecloud

sonarqubecloud Bot commented Jun 4, 2026

Copy link
Copy Markdown

@vbreuss
vbreuss merged commit 4974e3a into main Jun 4, 2026
18 of 19 checks passed
@vbreuss
vbreuss deleted the docs/fluentassertions-comparison-symmetry branch June 4, 2026 14:31
@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown

This is addressed in release v2.0.0.

@github-actions github-actions Bot added the state: released The issue is released label Jun 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Improvements or additions to documentation state: released The issue is released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant