English 中文(简体)
我为什么在进行ms测时会“Index”置身于阵列之外。 在指挥线上公布?
原标题:Why am I getting "Index was outside the bounds of the array" when running mstest.exe on the commandline?

I am running this on my machine

"%ProgramFiles(x86)%Microsoft Visual Studio 10.0Common7IDEmstest.exe" /testcontainer:"C:WorkingEinsteinSolutionsEinsteinAcceptanceTestsinDebugEinsteinAcceptanceTests.dll" /resultsfile:TestResult.trx"

而且,我已经来到这里。

指数超出了阵列的界限。

页: 1

如何对此进行反驳?

最佳回答

您可以检查文本不兼容。 例如,在尝试进行VS2008测试时,你发现这一错误。

问题回答

在2012年,我曾遇到过这一问题,即我有2个单位测试项目,涉及微软大会的不同版本。 视力学。

在测试科产出窗口汇编解决方案时,我看到了这个问题:

------ Discover test started ------
index was outside the bounds of the array





相关问题
handling exceptions IN Action Filters

Is there a better way to handle exceptions that occur inside an Action Filter itself in ASP .NET MVC? There re 2 ways I can think of at the moment. Using a try catch and setting the HTTP Status ...

既可捕获,又可举出例外。

我有一种办法,可以进入亚洲开发银行,因此,我国的亚行在多瑙河航道中的所有 st子都位于一个试捕区。 它正在追捕Kexception

Cross compiler exception handling - Can it be done safely?

I am doing some maintenance on a C++ windows dll library that is required to work with different VC++ compilers (as I don’t want to address different mangling schemes). I have already eliminated any ...

File Handling Issue

I am developing a tool in c#, at one instance I start writing into a xml file continuously using my tool,when i suddenly restart my machine the particular xml file gets corrupted, what is the reason ...

Watch a memory location/install data breakpoint from code?

We have a memory overwrite problem. At some point, during the course of our program, a memory location is being overwritten and causing our program to crash. the problem happens only in release mode. ...

Unit Test for Exceptions Message

Is there a simple (Attribute-driven) way to have the following test fail on the message of the exception. [TestMethod()] [ExpectedException(typeof(ArgumentException))] public void ExceptionTestTest() ...

热门标签