Skip to content

Refactor Assert.Contains APIs#7075

Merged
Evangelink merged 3 commits into
mainfrom
dev/amauryleve/assert-contains
Dec 10, 2025
Merged

Refactor Assert.Contains APIs#7075
Evangelink merged 3 commits into
mainfrom
dev/amauryleve/assert-contains

Merge branch 'main' into dev/amauryleve/assert-contains

92e6334
Select commit
Loading
Failed to load commit list.
Azure Pipelines / microsoft.testfx (Build MacOS Release) failed Dec 9, 2025 in 33m 40s

Build MacOS Release failed

Annotations

Check failure on line 405 in src/TestFramework/TestFramework/Assertions/Assert.Contains.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Release)

src/TestFramework/TestFramework/Assertions/Assert.Contains.cs#L405

src/TestFramework/TestFramework/Assertions/Assert.Contains.cs(405,1): error : [Timeout_WhenTimeoutValueSmallerThanTestDuration_OutputContainsCancelingMessage ("net10.0")] Assert.Contains failed. String 'MSTest v4.1.0-ci (UTC 12/9/2025) [osx-x64 - .NET 10.0.0]
Test run summary: Aborted - /Users/runner/work/1/s/artifacts/tmp/Release/testsuite/OQMGu/TimeoutTest/bin/Release/net10.0/TimeoutTest.dll (net10.0|x64)
  total: 0
  failed: 0
  succeeded: 0
  skipped: 0
  duration: 389ms' does not contain string 'Canceling the test session'. 'substring' expression: 'value', 'value' expression: 'testHostResult.StandardOutput'. Expression 'AssertOutputContains' failed for member 'Timeout_WhenTimeoutValueSmallerThanTestDuration_OutputContainsCancelingMessage' at line 466 of file '/_/test/IntegrationTests/MSTest.Acceptance.IntegrationTests/TimeoutTests.cs'. Output of the test host is:
Command: /Users/runner/work/1/s/artifacts/tmp/Release/testsuite/OQMGu/TimeoutTest/bin/Release/net10.0/TimeoutTest --timeout 1s
====================
ExitCode: 3
====================
StandardOutput:
MSTest v4.1.0-ci (UTC 12/9/2025) [osx-x64 - .NET 10.0.0]
Test run summary: Aborted - /Users/runner/work/1/s/artifacts/tmp/Release/testsuite/OQMGu/TimeoutTest/bin/Release/net10.0/TimeoutTest.dll (net10.0|x64)
  total: 0
  failed: 0
  succeeded: 0
  skipped: 0
  duration: 389ms
====================
StandardError:
.

Check failure on line 5447 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.testfx (Build MacOS Release)

Build log #L5447

Bash exited with code '2'.