nunit / nunit-vs-adapter

Runs NUnit V2 tests inside the Visual Studio 2012 or later Test Explorer window.
MIT License
50 stars 43 forks source link

NUnit v3 not running tests with AutoFixture.NUnit3.AutoData attribute #157

Closed UnderHeavyDevelopment closed 7 years ago

UnderHeavyDevelopment commented 7 years ago

Tests marked with [AutoData] attribute are not run by NUnit test runner.

Platform:

Required nugets:

Example:

using System;
using NUnit.Framework;
using Ploeh.AutoFixture;
using Ploeh.AutoFixture.NUnit3;

[TestFixture]
public class Tests
{
    [Test]
    [AutoData] // without this and argument it works
    public void AutoDataTest(int counter)
    {
        string result = counter.ToString();
        Assert.IsNotNull(result);
    }
}

Such test:

ChrisMaddock commented 7 years ago

I believe this is a duplicate of https://github.com/nunit/nunit3-vs-adapter/issues/342

Closing - let me know if I've missed something and should reopen!