문제

안녕하세요, 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 테스트가 포함되어 있음) 물론;) 테스트가 컴파일되어 있고 통과하고 오류를 이해할 수 없습니다.

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