Noksa / Allure.NUnit

C# NUnit Allure with improvements and SpecFlow3 adapter
MIT License
18 stars 6 forks source link

Extend parameters converting #28

Closed Noksa closed 5 years ago

Noksa commented 5 years ago

It should be possible to specify in the AllureStepAttribute not only the parameter name of the method, but also calling his members.

Example:

[AllureStep("Test &myClass.GetString()& &myClass.Int& &myClass._fieldName&")]
private void Test(MegaClass myClass)
{
    // code
}

public class MegaClass
{
    private string GetString()
    {
        return "Mega";
    }

    private double _fieldName = 4005;
    public int Int => 10;
}
Noksa commented 5 years ago

Released in 3.0.0