ArgumentOutOfRangeException when running tests
See original GitHub issueHi
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:
- Created 9 years ago
- Comments:26 (12 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Bugfix v0.11.1 release is now out on NuGet! Thanks for the patience 👍
Thanks for quick action! 🥇