Hi,
We have problem with NCrunch when combining .NetStandard 2.0 ClassLibrary and test project targeting .Net Framework 4.7. NCrunch have been working great with all tests which we wrote untill today :) I used tuples and bam! I got; System.MissingMethodException.
How to reproduce:
1. Create new .NetStandard 2.0 library
2. Add code:
Code:
public class Class1
{
public (List<(int, string)>, List<(int, string)>) GetTuple()
{
return (new List<(int, string)> {(1, "test")}, new List<(int, string)> { (1, "test2") });
}
}
3. Add ClassLibrary targeting .netframework 4.7
4. Install xunit
5. add reference to the first project.
6. Add code:
Code:
public class Class1Tests
{
[Fact]
public void doesItWork()
{
var cut = new Class1();
cut.GetTuple();
}
}
7. NCrunch fails.
The test passes in resharper test explorer as well as in VS test explorer. The issue disappears if you will set "Pre-load all assembly references into test environment" but this shouldn't be necessary, should it?
IDE: Visual Studio 2017 15.5.4 + Ncrunch 3.12.0.15.