You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On my tests, if the tested method uses the keyword "yield" with IEnumerables it throws this exception:
Error Message:
System.InvalidProgramException : Common Language Runtime detected an invalid program.
Stack Trace:
at ServiceFramework.Persistence.LabelIndexHelper.<GeneratePairs>d__0.MoveNext()
...
MiniCover version: 2.0.0-ci-20180329054201
Method sample code:
public IEnumerable<string[]> GeneratePairs(string[] labels)
{
if (labels == null || labels.Length == 0)
{
yield break;
}
for (var i = 0; i < labels.Length - 1; i++)
{
for (var j = i + 1; j < labels.Length; j++)
{
yield return new[] {labels[i], labels[j]};
}
}
}
The same code runs with no issues when using "dotnet test" line command.
The text was updated successfully, but these errors were encountered:
On my tests, if the tested method uses the keyword "yield" with IEnumerables it throws this exception:
MiniCover version: 2.0.0-ci-20180329054201
Method sample code:
The same code runs with no issues when using "dotnet test" line command.
The text was updated successfully, but these errors were encountered: