Skip to content

🐛 Compilation error when using NUnit2 #2

@sixeyes

Description

@sixeyes

Describe the Bug

After adding AutoFixture and Autofixture.NUnit2 to the project, it will no longer compile.

Using Visual Studio 2019, .NET v4.7.2
I'm using NUnit v2.6.4 and I've added the two binding redirects as described in the readme.txt to app.config, which already had many other redirects.

I'm getting the following error:

The type 'ITestCaseData' exists in both 'nunit.core.interfaces, Version=2.6.2.12296, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' and 'nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77'

Scenario

I have added AutoFixture v4.18.1, AutoFixture.NUnit2 v4.18.1 and NUnit v2.6.4 to my project.

I use ITestCaseData static arrays in some of my tests and it is these files that no longer compile.

Expected Behavior

I expected it to just work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions