I want to take screenshot if a assert condition fails which is inside Assert.Multiple.
E.g.
[Test]
public void TestScreenshot()
{
Assert.Multiple(() =>
{
Assert.IsTrue(false);
Assert.Istrue(true);
});
}
In the above test,let say the first assertion is failure.So i want to take screenshot after the first assertion. But Assert.Multiple will return the assertions once all the steps executed within the multiple condition.
So, Is there anyway to take screenshot after a condition passes/fails which is added in the Multiple condition.