Skip to content

chore(tests): rename test dir to Wolfgang.TryPattern.Tests.Unit + sync namespace (#222)#231

Merged
Chris-Wolfgang merged 1 commit into
vNextfrom
tier2/222-test-csproj-rename
Jun 30, 2026
Merged

chore(tests): rename test dir to Wolfgang.TryPattern.Tests.Unit + sync namespace (#222)#231
Chris-Wolfgang merged 1 commit into
vNextfrom
tier2/222-test-csproj-rename

Conversation

@Chris-Wolfgang

@Chris-Wolfgang Chris-Wolfgang commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Summary

Aligns the test project's directory, csproj filename, assembly name, and root namespace under a single Wolfgang.TryPattern.Tests.Unit identity. Previously the directory was tests/Wolfgang.TryPattern.Tests/ but the csproj was Wolfgang.TryPattern.Tests.Unit.csproj and the .cs files declared namespace Wolfgang.TryPattern.Tests;three different names for the same project.

Changes

Surface Before After
Directory tests/Wolfgang.TryPattern.Tests/ tests/Wolfgang.TryPattern.Tests.Unit/
csproj filename Wolfgang.TryPattern.Tests.Unit.csproj (unchanged)
Assembly name Wolfgang.TryPattern.Tests.Unit.dll (unchanged)
Root namespace Wolfgang.TryPattern.Tests Wolfgang.TryPattern.Tests.Unit
TryPattern.sln L16 path = tests\Wolfgang.TryPattern.Tests\... path = tests\Wolfgang.TryPattern.Tests.Unit\...
stryker-config.json L5 path = tests/Wolfgang.TryPattern.Tests/... path = tests/Wolfgang.TryPattern.Tests.Unit/...

7 .cs files updated to namespace 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 Release clean 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 passing
  • Assembly output verified at tests/Wolfgang.TryPattern.Tests.Unit/bin/Release/net10.0/Wolfgang.TryPattern.Tests.Unit.dll
  • No grep hits for the old Wolfgang.TryPattern.Tests namespace remain in test source

Closes #222

@Chris-Wolfgang Chris-Wolfgang force-pushed the tier2/218-xunit-runner-align branch from 9e95165 to 2b3180b Compare June 30, 2026 00:39
@Chris-Wolfgang Chris-Wolfgang force-pushed the tier2/222-test-csproj-rename branch from 9bc638a to 24a2420 Compare June 30, 2026 00:40
Base automatically changed from tier2/218-xunit-runner-align to vNext June 30, 2026 00:41
…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
@Chris-Wolfgang Chris-Wolfgang force-pushed the tier2/222-test-csproj-rename branch from 24a2420 to 0527d3f Compare June 30, 2026 00:46
@Chris-Wolfgang Chris-Wolfgang changed the title chore(tests): rename Tests.Unit csproj to Tests for directory parity (#222) chore(tests): rename test dir to Wolfgang.TryPattern.Tests.Unit + sync namespace (#222) Jun 30, 2026
@Chris-Wolfgang Chris-Wolfgang merged commit d67b1ac into vNext Jun 30, 2026
@Chris-Wolfgang Chris-Wolfgang deleted the tier2/222-test-csproj-rename branch June 30, 2026 01:00
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant