嗨,我在VisualStudio 2010中有一个Gallio 3.2 B.435的测试项目。每次启动任何测试时,输出窗口都会弹出。

这是错误消息

[error] An exception was thrown while exploring tests.
Location: C:\xxxxxxx(73)
Details: System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
.

这是指定行的代码

71: [Test, ExpectedException(typeof(RulesException<Story>))]
72: public void CanNotSaveItemIfInvalid()
73: {
74:     var story= new Story{ Id = 100, Tilte= "test" };
75:      repository.Save(story, new MembershipUser());
76: }
.

此错误isthrown无常床在测试中进行了哪些测试(项目包含700个测试) 当然;)测试编译和通过,我无法理解错误。

bye stefano

有帮助吗?

解决方案

This error is a known issue. It's due to a bug in the early version of Mono.Cecil (v0.6) that was used by the Gallio core engine. It has been fixed recently: Gallio is now using Mono.Cecil v0.9.

Please try out the latest version of Gallio (v3.2.2)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top