I need to test function which takes as arguments path to the XML file and XPath, and returns value of given XPath. And now - I'm not sure how to do that. Is it a good practice to create sample XML file and make unit tests which will use this specific file, or maybe I should use something more "clever"?
Aucun commentaire:
Enregistrer un commentaire