Hello
I have a test like this
[Test]
[TestCaseSource(typeof(LineItemActionTestsSource), "TestCases")]
public bool Should_HasChanges(LineItemAction testValue)
{
var sut = <<create and fill instance>>
return sut.HasChanges(testValue);
}
my test cases yield a complex type of LineItemAction
it runs ok with the default NUnit test runner but NCrunch gives me this warning
This project contains multiple NUnit tests that share the same name. This prevents NCrunch from uniquely identifying tests during their discovery and execution, distorting the reporting of test results.
A common cause of this problem is test cases generated based on a user defined type as a parameter. If you are using user defined types as parameters to your tests, you must implement .ToString() on the user defined type to ensure instances of these parameters can be uniquely represented in test names.
Internally, NUnit uses sequentially generated IDs to identify tests internally and between sessions. Unfortunately, these sequentially generated IDs cannot be used by NCrunch, as the sequence of tests in a suite is continuously being updated while tests are added and removed, and critical state (such as pass/fail, code coverage, output text, etc) must be reliably correlated across multiple versions of a test suite.
There is a high probability that future versions of NUnit will not support test cases without a unique name - https://github.com/nunit/nunit/issues/1336
The following test names are duplicated in this project:
LineItemActionTests.Should_HasChanges([LineItemAction 1])
LineItemActionTests.Should_HasChanges([LineItemAction 1])
LineItemActionTests.Should_HasChanges([LineItemAction 1])
LineItemActionTests.Should_HasChanges([LineItemAction 1])
LineItemActionTests.Should_HasChanges([LineItemAction 1])
LineItemActionTests.Should_HasChanges([LineItemAction 1])
LineItemActionTests.Should_HasChanges([LineItemAction 1])
LineItemActionTests.Should_HasChanges([LineItemAction 1])
LineItemActionTests.Should_HasChanges([LineItemAction 1])
LineItemActionTests.Should_HasChanges([LineItemAction 1])
LineItemActionTests.Should_HasChanges([LineItemAction 1])
I am using VS 2015, NCrunch 3.9.0.1 and nunit 3.2.0.0
Any ideas/sugestions?
Kind regards
Henrry