Refs #159: migrate Transport.LiteDb.Tests to MSTest assertions (Phase 3 PR A)#172
Conversation
…st assertions Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… assertions Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ertions Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… LiteDb.Tests csproj Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ests.cs to MSTest assertions Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…st assertions Includes AssertHelper.AreEquivalent for the 2 byte[] BeEquivalentTo sites and Assert.IsTrue for BeGreaterThan/BeGreaterThanOrEqualTo. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThis PR migrates test assertions in the LiteDb transport test project from FluentAssertions to MSTest's built-in Assert API. It removes FluentAssertions imports, rewrites assertion calls, adds a shared test utilities project reference, and removes the FluentAssertions package dependency. ChangesLiteDb Test Assertion Migration
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Part of #159 (replace FluentAssertions with MSTest assertions). Phase 3, PR A of 2.
Migrates
DotNetWorkQueue.Transport.LiteDb.Tests(77.Should()sites across 5 files) from FluentAssertions to built-in MSTest assertions and removes the project'sFluentAssertionsPackageReference. Adds aProjectReferencetoDotNetWorkQueue.Tests.Sharedfor the one non-1:1 pattern.Files
Basic/QueryMessageHistoryHandlerTests.cs(4)Basic/QueryHandler/DoesJobExistQueryHandlerTests.cs(7)Basic/QueryHandler/GetJobIdQueryHandlerTests.cs(4)Basic/CommandHandler/SetJobLastKnownEventCommandHandlerTests.cs(13)Basic/WriteMessageHistoryHandlerTests.cs(49)Tests.SharedProjectReference, −FluentAssertionsMapping notes
Assert.AreEqual;.Should().Be(x)→AreEqual,HaveCount(n)→AreEqual(n, .Count),NotBeNull/BeNull→IsNotNull/IsNull.BeEquivalentTo(byte[])→AssertHelper.AreEquivalent(order-insensitive, matches FA default).BeGreaterThan(0)/BeGreaterThanOrEqualTo(0)→Assert.IsTrue(x > 0)/(x >= 0).NotThrow()→ bareact();.Verification
dotnet build -c Release(TreatWarningsAsErrors) → 0 warnings, 0 errors.dotnet test -c Release→ 168/168 passed.FluentAssertions/.Should()→ zero.Source/Directory.Packages.propsFA entry intentionally left in place (removed in the final Replace FluentAssertions with MSTest assertions (license: 6.12.2 is last MIT release) #159 phase).Test-only; no production code change, no version bump.
🤖 Generated with Claude Code
Summary by CodeRabbit