chore(tests): rename test dir to Wolfgang.TryPattern.Tests.Unit + sync namespace (#222)#231
Merged
Merged
Conversation
9e95165 to
2b3180b
Compare
9bc638a to
24a2420
Compare
…c namespace Aligns the test project directory, csproj filename, assembly name, and root namespace under a single Wolfgang.TryPattern.Tests.Unit identity. Before: directory was tests/Wolfgang.TryPattern.Tests/ but csproj was Wolfgang.TryPattern.Tests.Unit.csproj and the .cs files declared 'namespace Wolfgang.TryPattern.Tests;' — three different names for the same project. Changes: - git mv tests/Wolfgang.TryPattern.Tests -> tests/Wolfgang.TryPattern.Tests.Unit (csproj keeps its existing Wolfgang.TryPattern.Tests.Unit.csproj name) - TryPattern.sln L16: project path updated - stryker-config.json L5: test-projects path updated - Person.cs / ResultOfTTests.cs / ResultTests.cs / RunActionTests.cs / RunAsyncActionTests.cs / RunAsyncFuncTests.cs / RunFuncTests.cs: 'namespace Wolfgang.TryPattern.Tests;' -> 'namespace Wolfgang.TryPattern.Tests.Unit;' Assembly output name unchanged (Wolfgang.TryPattern.Tests.Unit.dll — matches csproj filename, which was already correct). Workflows / scripts don't reference the directory by name (they glob tests/** and TestResults/**), so no further changes needed. Verified locally: dotnet build -c Release clean (0 errors, 3 unrelated NuGet TFM-support warnings on test net5/6/7), dotnet test -c Release -f net10.0 passes 88/88. Closes #222
24a2420 to
0527d3f
Compare
Chris-Wolfgang
added a commit
that referenced
this pull request
Jun 30, 2026
Tier-2 cleanup round surfaced by the v0.3.3 AI code-review pass. No public API change in Wolfgang.TryPattern itself; PATCH bump per SemVer. Contents this release: - Docs: README database example converted to Try.RunAsync / ExecuteReaderAsync (#226, closes #221) - Perf: benchmarks project bumped net8.0 -> net10.0 + workflow SDK install bumped to 10.0.x (#227, closes #220) - Fix: PublicApiAnalyzer manifest — Result<T>.Value.get moved into per-TFM split (modern: T?, legacy: T); the previous top-level entry was silently wrong against modern builds (#228, closes #219) - Chore: xunit.runner.visualstudio bumped 3.0.0 -> 3.1.5 (latest 3.x GA; xunit core 2.9.3 stays put — 3.x runner supports xunit 1/2/3) (#229, closes #218) - Chore: test directory + namespace aligned under single Wolfgang.TryPattern.Tests.Unit identity (directory, csproj, assembly, namespace, sln + stryker config) (#231, closes #222) - Fix: scripts/build-pr.ps1 restored -UseBasicParsing on Invoke-WebRequest (#230, merged directly to main)
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Aligns the test project's directory, csproj filename, assembly name, and root namespace under a single
Wolfgang.TryPattern.Tests.Unitidentity. Previously the directory wastests/Wolfgang.TryPattern.Tests/but the csproj wasWolfgang.TryPattern.Tests.Unit.csprojand the.csfiles declarednamespace Wolfgang.TryPattern.Tests;— three different names for the same project.Changes
tests/Wolfgang.TryPattern.Tests/tests/Wolfgang.TryPattern.Tests.Unit/Wolfgang.TryPattern.Tests.Unit.csprojWolfgang.TryPattern.Tests.Unit.dllWolfgang.TryPattern.TestsWolfgang.TryPattern.Tests.UnitTryPattern.slnL16tests\Wolfgang.TryPattern.Tests\...tests\Wolfgang.TryPattern.Tests.Unit\...stryker-config.jsonL5tests/Wolfgang.TryPattern.Tests/...tests/Wolfgang.TryPattern.Tests.Unit/...7
.csfiles updated tonamespace Wolfgang.TryPattern.Tests.Unit;:Person.cs,ResultOfTTests.cs,ResultTests.cs,RunActionTests.cs,RunAsyncActionTests.cs,RunAsyncFuncTests.cs,RunFuncTests.cs.Earlier round of this PR went the other direction (renamed the csproj to match the directory + kept the namespace as
Wolfgang.TryPattern.Tests). Reversed per user direction.Stacked on #229. Final PR in the v0.3.4 stack.
Test plan
dotnet build -c Releaseclean across all TFMs (0 errors, 3 unrelated NuGet TFM-support warnings on test net5/6/7)dotnet test -c Release -f net10.0— 88/88 passingtests/Wolfgang.TryPattern.Tests.Unit/bin/Release/net10.0/Wolfgang.TryPattern.Tests.Unit.dllWolfgang.TryPattern.Testsnamespace remain in test sourceCloses #222