Skip to content

Exception during run UT with TestCaseSource #146

Description

@comradum

Issue description:

Have exception: "Length cannot be less than zero" when start UT with TestCaseSource:

Length cannot be less than zero.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at OpenCover.UI.Processors.NUnitTestExecutor.ReadTestCase(XElement ts)
at OpenCover.UI.Processors.NUnitTestExecutor.b__1(XElement ts)
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.<UnionIterator>d__661.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.<SelectManyIterator>d__162.MoveNext()
at System.Linq.Lookup2.CreateForJoin(IEnumerable1 source, Func2 keySelector, IEqualityComparer1 comparer)
at System.Linq.Enumerable.d__374.MoveNext() at OpenCover.UI.Processors.NUnitTestExecutor.UpdateTestMethodsExecution(IEnumerable1 tests)
at OpenCover.UI.Commands.ExecuteSelectedTestsCommand.b__1()

Versions used:

  • OpenCover exe: 4.6.519
  • OpenCover.UI: 0.8.1
  • Visual Studio (inc. SP number): VS 2012 11.0.61219.00 Update 5
  • MsTest/NUnit/xUnit: NUnit: 2.6.4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions