Answers for "C# Unit test IConfiguration"

C#
0

C# Unit test IConfiguration

[Fact]
public void Test_IsConfigured_Positive()
{

  // test against this configuration
  IConfiguration config = new ConfigurationBuilder()
    // how to populate it via code
    .Build();

  // the extension method to test
  Assert.True(config.IsConfigured());

}
Posted by: Guest on March-17-2022

C# Answers by Framework

Browse Popular Code Answers by Language