Visual studio 2010 加利奥误差;探索测试时引发异常。”;

Visual studio 2010 加利奥误差;探索测试时引发异常。”;,visual-studio-2010,mbunit,gallio,Visual Studio 2010,Mbunit,Gallio,您好,我在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.S

您好,我在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: }
71:[测试,预期异常(typeof(RulesException))]
72:公共void无法保存ItemIFInvalid()
73: {
74:var story=newstory{Id=100,tilt=“test”};
75:repository.Save(story,newmembershipUser());
76: }
此错误不包括正在测试的测试(项目包含700个测试) 当然可以;)测试编译并通过,我无法理解错误

再见Stefano

这是一个错误。这是由于Gallio core引擎使用的Mono.Cecil(v0.6)早期版本中的一个bug造成的。它最近被修复了:Gallio现在使用Mono.cecilV0.9

请试用Gallio的版本(v3.2.2)