ConfigurationMangerTests.cs 536 B

123456789101112131415161718192021
  1. #nullable enable
  2. namespace UnitTests_Parallelizable.ConfigurationTests;
  3. public class ConfigurationManagerTests
  4. {
  5. [ConfigurationProperty (Scope = typeof (CMTestsScope))]
  6. public static bool? TestProperty { get; set; }
  7. private class CMTestsScope : Scope<CMTestsScope>
  8. {
  9. }
  10. [Fact]
  11. public void GetConfigPropertiesByScope_Gets ()
  12. {
  13. var props = ConfigurationManager.GetUninitializedConfigPropertiesByScope ("CMTestsScope");
  14. Assert.NotNull (props);
  15. Assert.NotEmpty (props);
  16. }
  17. }