Skip to content

Move test assertions to AwesomeAssertions#13

Merged
304NotModified merged 2 commits into
mainfrom
copilot/move-to-awesomeassertions
Mar 6, 2026
Merged

Move test assertions to AwesomeAssertions#13
304NotModified merged 2 commits into
mainfrom
copilot/move-to-awesomeassertions

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 6, 2026

Replaces TUnit's built-in Assert.That() assertions with AwesomeAssertions for better test reporting.

Changes

  • tests/Directory.Build.props — Added AwesomeAssertions 9.4.* package reference
  • All test files — Migrated assertions from TUnit's await Assert.That(x).IsEqualTo(y) to AwesomeAssertions' fluent .Should().Be(y) style

Before

await Assert.That(result.IsValid).IsFalse();
await Assert.That(result.Errors[0].Code).IsEqualTo(ValidationErrorCode.InvalidXml);
await Assert.That(result.Errors[0].Message).Contains("Invalid XML");

After

result.IsValid.Should().BeFalse();
result.Errors[0].Code.Should().Be(ValidationErrorCode.InvalidXml);
result.Errors[0].Message.Should().Contain("Invalid XML");

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: 304NotModified <5808377+304NotModified@users.noreply.github.com>
Copilot AI changed the title [WIP] Move codebase to awesomeassertions Move test assertions to AwesomeAssertions Mar 6, 2026
@304NotModified 304NotModified marked this pull request as ready for review March 6, 2026 20:40
@304NotModified 304NotModified merged commit 5c2c308 into main Mar 6, 2026
2 checks passed
@304NotModified 304NotModified deleted the copilot/move-to-awesomeassertions branch March 6, 2026 20:41
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.

2 participants