Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink committed Jan 15, 2025
1 parent b2f19cf commit b744e38
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ public void ExecuteForTestThrowingExceptionShouldReturnUnitTestResultWithFailedO

UnitTestResult[] results = testMethodRunner.Execute(string.Empty, string.Empty, string.Empty, string.Empty).ToUnitTestResults();
Verify(results[0].Outcome == AdapterTestOutcome.Failed);
Verify(results[0].ErrorMessage.Contains("Exception thrown while executing test"));
Verify(results[0].ErrorMessage.Contains(
"""
An unhandled exception was thrown by the 'Execute' method. Please report this error to the author of the attribute 'Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute'.
System.Exception: DummyException
"""));
}

public void ExecuteForPassingTestShouldReturnUnitTestResultWithPassedOutcome()
Expand Down

0 comments on commit b744e38

Please sign in to comment.