This project is read-only.

Why it's worth to review Unit Tests

Most important usage scenarios for the library are covered in provided Unit Tests project. Unit tests can be considered as a secondary API documentation for the, and can be useful in scenarios which are not covered in How to's.

How to run Unit Tests

Before running Unit Tests that require NUnit framework runner, class file will have to be modified to set missing Partner Id and License Key. So that unit test could be executed against service.

 public virtual void Initialize()
     _client = new WeatherClient("[Partner Id here]", "[License Key here]");

Can I mock WeatherClient class?

WeatherClient class implements interface.

How to check if library is still compatible with web service

There are three unit test suites that retrieve XML from service and validate it against XSD schema to check if current implementation still match service output.

Last edited May 2, 2011 at 8:40 AM by mulawam, version 5


No comments yet.