mardi 22 décembre 2015

Multiple methods calls inside test method

I am writing unit test to test some converters in my app which has three languages. The test results depends from the value of the language, for example if the language is "en" i should expect one output and if the language is "fr" i should expect different output. Is it ok inside my test method annotated with @Test to make three calls to one method that receives language as method parameter, or i should duplicate my code and create three different test methods, each for a specific language ?

Aucun commentaire:

Enregistrer un commentaire