Created
July 23, 2012 05:46
-
-
Save sandrinodimattia/3162136 to your computer and use it in GitHub Desktop.
IServerConfigurationProvider Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
[ExpectedException(typeof(ConfigurationErrorsException))] | |
public void ServerMissing() | |
{ | |
RegisterConfiguration("Configurations\\ServerMissing.config"); | |
// Read the file. | |
var prov = krn.Get<IServerConfigurationProvider>(); | |
var section = prov.Read(); | |
// Assert. | |
Assert.IsNull(section.Server); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment