diff --git a/tests/dotnet-test/dotnet-test-frameworks/eval.yaml b/tests/dotnet-test/dotnet-test-frameworks/eval.yaml index d41a1e7a87..6f611500a6 100644 --- a/tests/dotnet-test/dotnet-test-frameworks/eval.yaml +++ b/tests/dotnet-test/dotnet-test-frameworks/eval.yaml @@ -156,6 +156,8 @@ scenarios: assertions: - type: "output_matches" pattern: "\\[TestMethod\\].*Assert\\.Throws(Exactly)?<|Assert\\.Throws(Exactly)?<.*AreEqual" + - type: "output_matches" + pattern: "Assert\\.AreEqual\\([^)]*\\.Message" - type: "output_matches" pattern: "\\[Fact\\].*Assert\\.Throws<|Assert\\.Throws<.*Assert\\.Equal" - type: "output_matches" @@ -165,7 +167,7 @@ scenarios: - "Replaced the MSTest try/catch with Assert.ThrowsExactly or Assert.Throws" - "Replaced the xUnit try/catch with Assert.Throws" - "Replaced the NUnit try/catch with the constraint-model pattern or Assert.Throws" - - "Preserved exception message verification in all three refactored versions" + - "Preserved exception message verification in all three refactored versions (e.g. `Assert.AreEqual(\"...\", ex.Message)` for MSTest)" reject_tools: ["bash", "edit", "create"] timeout: 120