Skip to content

Instantly share code, notes, and snippets.

@sandrinodimattia
Created July 23, 2012 05:46
Show Gist options
  • Save sandrinodimattia/3162136 to your computer and use it in GitHub Desktop.
Save sandrinodimattia/3162136 to your computer and use it in GitHub Desktop.
IServerConfigurationProvider Test
[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