Skip to content

Commit 007f354

Browse files
authored
Merge pull request #112 from dsarno/codex/refactor-assertions-in-runteststests
2 parents 74adad3 + 7ebdc17 commit 007f354

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TestProjects/UnityMCPTests/Assets/Tests/EditMode/Tools/RunTestsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void FormatResultMessage_WithNoTests_IncludesWarning()
3131

3232
// Assert - THIS IS THE NEW FEATURE
3333
Assert.IsTrue(
34-
message.Contains("No tests matched") || message.Contains("no tests found"),
34+
message.Contains("No tests matched"),
3535
$"Expected warning when total=0, but got: '{message}'"
3636
);
3737
}
@@ -55,7 +55,7 @@ public void FormatResultMessage_WithTests_NoWarning()
5555

5656
// Assert
5757
Assert.IsFalse(
58-
message.Contains("No tests matched") || message.Contains("no tests found"),
58+
message.Contains("No tests matched"),
5959
$"Should not have warning when tests exist, but got: '{message}'"
6060
);
6161
Assert.IsTrue(message.Contains("4/5 passed"), "Should contain pass ratio");

0 commit comments

Comments
 (0)