您好我在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: }
这个错误是没有遇到什么测试正在测试中(该项目包含700个测试) 当然;)测试编译并通过,我无法理解错误。
再见Stefano答案 0 :(得分:2)
此错误为known issue。这是由于Gallio核心引擎使用的Mono.Cecil(v0.6)早期版本中的一个错误。它最近已被修复:Gallio现在正在使用Mono.Cecil v0.9。
请试用Gallio的latest version(v3.2.2)