Question

Bonjour, j'ai un projet de test avec Gallio 3.2 B.435 à VisualStudio 2010. Chaque fois que je lance tout test, les fenêtres de sortie apparaissent.

Ceci est le message d'erreur

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

Ceci est le code à la ligne spécifiée

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

Cette erreur n'est pas opportune, quel test est sous test (le projet contient 700 tests) Bien sûr;) le test compile et passe et je ne peux pas comprendre l'erreur.

Bye Stefano

Était-ce utile?

La solution

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)

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top