Tagged Questions
2
votes
1answer
124 views
Unit Testing Open Source projects that require keys for api calls
What's the recommended method for setting up tests on code that requires a private key to make calls to external web services?
Full on mock objects or is there a way of distributing open source unit ...
7
votes
5answers
397 views
How to TDD test that objects are being added to a collection if the collection is private?
Assume that I planned to write a class that worked something like this:
public class GameCharacter {
private Collection<CharacterEffect> _collection;
public void Add(CharacterEffect e) ...
0
votes
1answer
285 views
Unit testing external dependencies
When writing a program, should I write tests that ensure that the dependencies I use are working? Those might help to check my assumptions about them, and may also help when deciding to upgrade said ...
8
votes
3answers
450 views
Unit testing methods that call suppliers webservices
I have a class with one public method Send() and a few private methods. It calls a couple of webservices and processes the reponse. The processing is done in private methods.
I want to unit test the ...