Open Noksa opened 4 years ago
So.
BAD:
[AllureStep("test")]
public void Test()
{
Console.WriteLine("test");
throw new Exception("test");
Console.WriteLine("test");
}
[AllureStep("test")]
public void Test()
{
Console.WriteLine("test");
var throw = true;
if (throw) throw new Exception("test");
}
GOOD:
[AllureStep("test")]
public void Test(bool throw)
{
Console.WriteLine("test");
if (throw) throw new Exception("test");
Console.WriteLine("test");
}
[AllureStep("test")]
public string Test(bool throw)
{
Console.WriteLine("test");
if (throw) throw new Exception("test");
return "test";
}
There is no need to fix this at the moment. Just don't throw an exception for nothing.
To Reproduce Code like this broke all
AllureStep
Expected behavior
Screenshots
Versions