Tests marked with [AutoData] attribute are not run by NUnit test runner.
Platform:
.NET Framework 4.6.1
VS2017 (15.2 26430.15)
NUnit 3 Test Adapter 3.7.0.0
Required nugets:
AutoFixture v3.50.2
AutoFixture.NUnit3 v3.50.2
NUnit v3.7.1
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:
does not run when clicking Run Test
does not run when executing Run All
is discovered (!), means is displayed in Test Explorer window, but under Not Run Tests always.
is shown on test list WITH dummy argument generated by AutoData, like: AutoDataTest(3)
Tests marked with [AutoData] attribute are not run by NUnit test runner.
Platform:
Required nugets:
Example:
Such test: