Configuration.Core.Test - NathanGloyn/IConfigurationManager GitHub Wiki

Configuration.Core.Test

This project contains all the tests for the current implementations of the adapters.

It utilises NUnit's Generic Test Fixtures allowing the tests to be written against the IConfigurationManager/IConfigurationManagerExtension interface so that the tests themselves are run against each adapter.

This results in the tests being run twice, once for each adapter, which if you are using R# means you won't see the individual tests marked as passes but rather the whole fixture.

By doing this the tests themselves are kept very simple, focus' on the interaction through the interface (which is how they are supposed to be used) and ensures the tests themselves adhere to DRY