PageRenderTime 36ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/Source/Examples/Example.UsingExternalFile/UsingConfigFileSpecs.cs

https://github.com/machine/machine.specifications
C# | 15 lines | 12 code | 3 blank | 0 comment | 0 complexity | 2fab20b1d029d6897684f7cd17e0191a MD5 | raw file
Possible License(s): MIT, CC-BY-SA-3.0
  1. using System.Configuration;
  2. using FluentAssertions;
  3. using Machine.Specifications;
  4. namespace Example.UsingExternalFile
  5. {
  6. [Subject("External resources usage")]
  7. public class when_using_test_assembly_configuration_file
  8. {
  9. It should_be_able_to_read_application_settings =
  10. () => ConfigurationManager.AppSettings["key"].Should().Be("value");
  11. }
  12. }