Skip to content

Generates duplicate variables for _testContext declarations and methods #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rbheemidi opened this issue Jan 16, 2019 · 1 comment

Comments

@rbheemidi
Copy link

public Microsoft.VisualStudio.TestTools.UnitTesting.TestContext TestContext
{
get
{
return this._testContext;
}
set
{
this._testContext = value;
}
}

@Taldren76
Copy link

Taldren76 commented Apr 23, 2019

Using Specflow 2.4.0, this is in each of my feature.cs files:

`
private Microsoft.VisualStudio.TestTools.UnitTesting.TestContext _testContext;

    private Microsoft.VisualStudio.TestTools.UnitTesting.TestContext _testContext;

#line 1 "My.feature"
#line hidden

    public virtual Microsoft.VisualStudio.TestTools.UnitTesting.TestContext TestContext
    {
        get
        {
            return this._testContext;
        }
        set
        {
            this._testContext = value;
        }
    }
    
    public Microsoft.VisualStudio.TestTools.UnitTesting.TestContext TestContext
    {
        get
        {
            return this._testContext;
        }
        set
        {
            this._testContext = value;
        }
    }

`

I have to delete the duplication everytime the feature.cs files are generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants