Setting [TestCaseSource] to [Explicit] makes other tests in fixture explicit.
See original GitHub issuepublic class FooTests
{
private static readonly TestCaseData[] Values =
{
new TestCaseData(1),
new TestCaseData(2),
};
[Explicit("Don't run this")]
[TestCaseSource(nameof(Values))]
public void Test1(object value)
{
}
[Test]
public void Test2()
{
Assert.Pass();
}
}
<TargetFramework>net461</TargetFramework>
Using the R# runner:

- NUnit 3.10.1
- NUnit 3 Test Adapter 3.10.0.0
- VS 15.8.3
- Resharper 2018.2.1
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Explicit
The Explicit attribute causes a test or test fixture to be skipped unless it is explicitly selected for running. The test or fixture...
Read more >NUnit - TestCaseSource
TestCaseSourceAttribute is used on a parameterized test method to identify the property, method or field that will provide the required arguments.
Read more >Set test case source using TextFixtureAttribute
I'd make all methods public static and use them explicitly. class TestHelpers { public static void AssertReflexivity<X>(X x) { bool isEqual ...
Read more >NUnit set test name programmatically
In the link that you posted, there is a snippet where you explicitly create the TestCaseData objects via a method linked via the ......
Read more >Re: Struggling with TestCaseSource and TestCaseData ...
I have a working set of unit tests which use a custom TestCaseData entity along with the TestCaseSource attribute to utilize it.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

https://youtrack.jetbrains.com/issue/RSRP-471450
@JohanLarsson Alpha.1 released now: https://www.nuget.org/packages/NUnit3TestAdapter/4.0.0-alpha.1