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

docs: document Version.Build/Revision -1 behavior and cover negated component result - #254

Merged
vbreuss merged 2 commits into
mainfrom
docs/assembly-version-component-remarks
May 31, 2026
Merged

vbreuss merged 2 commits into
mainfrom
docs/assembly-version-component-remarks

Conversation

@vbreuss

@vbreuss vbreuss commented May 31, 2026

Copy link
Copy Markdown
Member

Add a one-line remark to the WithBuild/WithRevision members of the assembly version APIs noting that the build/revision component is -1 when absent from the version (per System.Version semantics), and add a test asserting the full failure message of a negated component constraint (expectation + result line).

…omponent result

Add a one-line remark to the WithBuild/WithRevision members of the assembly
version APIs noting that the build/revision component is -1 when absent from
the version (per System.Version semantics), and add a test asserting the full
failure message of a negated component constraint (expectation + result line).
@vbreuss vbreuss added coverage Additional tests for edge cases or improvement of test coverage documentation Improvements or additions to documentation labels May 31, 2026
@github-actions

github-actions Bot commented May 31, 2026 •

Copy link
Copy Markdown

Test Results

    13 files  ±0      13 suites  ±0   4m 50s ⏱️ +11s
 3 757 tests ±0   3 754 ✅ ±0   3 💤 ±0  0 ❌ ±0 
22 522 runs  ±0  22 509 ✅ ±0  13 💤 ±0  0 ❌ ±0 

Results for commit 3c4a057. ± Comparison against base commit 09b820b.

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented May 31, 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
Filters/AssemblyFilters.WithVersion.cs 76.00% 19 2 0 4 3 5 19 6 33
ThatAssemblies.HaveVersion.cs 80.00% 50 9 2 4 17 27 52 13 109
ThatAssembly.HasVersion.cs 86.36% 57 0 0 9 15 33 57 9 114

The final mutation score is 82.05%

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

@github-actions

github-actions Bot commented May 31, 2026 •

Copy link
Copy Markdown

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74 2.60GHz, 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 206.4 ns 1.89 ns 1.77 ns 0.0386 648 B

…ions

Replace the wildcard-fragment WithMessage checks in the HasVersion tests with
complete expected messages via raw string literals, dropping AsWildcard(). The
dynamic version/component values are read from the assembly so the expectations
stay version-independent. Merge the redundant negated matches test into the
existing WhenComponentMatches_ShouldFail now that it asserts the full message.
@sonarqubecloud

Copy link
Copy Markdown

@vbreuss
vbreuss merged commit d61dec8 into main May 31, 2026
11 checks passed
@vbreuss
vbreuss deleted the docs/assembly-version-component-remarks branch May 31, 2026 07:59
@github-actions

Copy link
Copy Markdown

This is addressed in release v1.5.0.

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

Labels

coverage Additional tests for edge cases or improvement of test coverage 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