question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ArgumentOutOfRangeException when running tests

See original GitHub issue

Hi

I am running MSpec 0.8.0 NuGet package and using ReSharper 8.2. When running my tests I get a popup window in Visual Studio saying:

Unit Test Runner failed to run tests

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: chunkLength
   at System.Text.StringBuilder.ToString()
   at System.IO.StringWriter.ToString()

The same issue happens on TeamCIty which is using the mspec-clr4.exe to run the tests. The test running stops after about 20 tests and the build still passes.

Let me know if you need any more info

Thanks Neil

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:26 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
ivanzcommented, Sep 11, 2017

Bugfix v0.11.1 release is now out on NuGet! Thanks for the patience 👍

0reactions
telleluycommented, Sep 12, 2017

Thanks for quick action! 🥇

Read more comments on GitHub >

github_iconTop Results From Across the Web

ThrowingException Causing UnitTest Break?
This Test is failing when i run test. This test is actually throwing the exception and TestMethod is going to break? So How...
Read more >
ArgumentOutOfRangeException Class (System)
The exception that is thrown when the value of an argument is outside the allowable range of values as defined by the invoked...
Read more >
C# unit test tutorial - Visual Studio (Windows)
Learn how to create, run, and customize a series of unit tests using the ... The method throws an ArgumentOutOfRangeException if the debit ......
Read more >
Unit Testing Exceptions in C#
Using C#, .NET Core, and xUnit, we will dive into how to unit test exceptions using xUnit (and other testing frameworks too!)
Read more >
Error when running all unit tests
Unhandled log message: '[Exception] ArgumentOutOfRangeException: Cannot be negative. Parameter name: value'. Use UnityEngine.TestTools.LogAssert ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found