質問

こんにちは私は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

役に立ちましたか?

解決

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