Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ public void That_Coalesce_ShortCircuit_PassingAssertion_DoesNotInvokeRight()
string? value = "hello";

// Non-null value short-circuits the null-coalescing operator; counter.Increment() must NOT run.
Action act = () => Assert.That(() => (value ?? counter.Increment().ToString()) == "hello");
Action act = () => Assert.That(() => (value ?? counter.Increment().ToString(CultureInfo.InvariantCulture)) == "hello");

act.Should().NotThrow();
counter.Count.Should().Be(0);
Expand Down
Loading