Domanda

Ciao ho un progetto di prova con Gallio 3.2 B.435 all'interno di Visualstudio 2010. Ogni volta che lancio qualsiasi test viene visualizzata l'uscita Windows.

Questo è il messaggio di errore

[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)
.

Questo è il codice sulla linea specificata

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: }
.

Questo errore è il metter-Metter che il test è in collaudo (il progetto contiene 700 test) Naturalmente;) il test compila e passa e non riesco a capire l'errore.

Bye Stefano

È stato utile?

Soluzione

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)

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top