-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Given this test case:
public class TestCase_ExpectedResult_FailedAssertion
{
[Summary("Expected result with one failed assertion")]
public void Summary()
{
TestCase.Current.Descriptor
.AddStep(StepType.Input, "Input", Input)
.AddStep(StepType.ExpectedResult, "Expected result", ExpectedResult);
}
private void Input()
{
}
private void ExpectedResult()
{
ExpectedResultStep.Current.Descriptor
.Assert("This should fail", () =>
{
Assert.Fail("Failed assertion on purpose");
});
}
}Expected outcome: the expected result step fails with StepFailedException. The StepError event is raised for the same exception.
Actual outcome: the expected result step fails with StepFailedException, but the StepError event is not raised at all.
Metadata
Metadata
Assignees
Labels
No labels