Skip to content

Commit 16ec964

Browse files
StevenTCramerclaude
andcommitted
Replace FluentAssertions with Shouldly
- Remove FluentAssertions package reference - Add Shouldly 4.3.0 package - Update test assertions to use Shouldly syntax: - true.Should().BeTrue() → true.ShouldBeTrue() - result.Should().Be(expected) → result.ShouldBe(expected) - All tests pass (4 passed, 1 skipped) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7ad0216 commit 16ec964

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.10" />
1010
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.10" />
1111
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="9.0.10" />
12+
<PackageVersion Include="Shouldly" Version="4.3.0" />
1213
<PackageVersion Include="TimeWarp.Build.Tasks" Version="1.0.0">
1314
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1415
<PrivateAssets>all</PrivateAssets>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
namespace ConventionTest_;
22

3-
using FluentAssertions;
3+
using Shouldly;
44
using TimeWarp.Fixie;
55

66
[TestTag(TestTags.Fast)]
77
public class SimpleNoApplicationTest_Should_
88
{
9-
public static void AlwaysPass() => true.Should().BeTrue();
9+
public static void AlwaysPass() => true.ShouldBeTrue();
1010

1111
[Skip("Demonstrates skip attribute")]
12-
public static void SkipExample() => true.Should().BeFalse();
12+
public static void SkipExample() => true.ShouldBeFalse();
1313

1414
[TestTag(TestTags.Fast)]
15-
public static void TagExample() => true.Should().BeTrue();
15+
public static void TagExample() => true.ShouldBeTrue();
1616

1717
[Input(5, 3, 2)]
1818
[Input(8, 5, 3)]
1919
public static void Subtract(int aX, int aY, int aExpectedDifference)
2020
{
2121
int result = aX - aY;
22-
result.Should().Be(aExpectedDifference);
22+
result.ShouldBe(aExpectedDifference);
2323
}
2424
}

tests/timewarp-options-validation-tests/timewarp-options-validation-tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<ItemGroup>
88
<PackageReference Include="Fixie.TestAdapter" />
9-
<PackageReference Include="FluentAssertions" />
9+
<PackageReference Include="Shouldly" />
1010
<PackageReference Include="TimeWarp.Fixie" />
1111
</ItemGroup>
1212

0 commit comments

Comments
 (0)