Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Jan 8, 2024
1 parent 47e5fa3 commit 5725431
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ public void AppSettings_CloneToDisplay_hideSecurityItems2()
}

[TestMethod]
public void AppSettings_CloneToDisplay_skipSecurityItems2()
public void AppSettings_CloneToDisplay_skip_Null_SecurityItems2_OpenTelemetrySettings()
{
var appSettings = new AppSettings
{
Expand All @@ -404,6 +404,19 @@ public void AppSettings_CloneToDisplay_skipSecurityItems2()
Assert.IsNull(display.OpenTelemetry.MetricsHeader);
Assert.IsNull(display.OpenTelemetry.TracesHeader);
}

[TestMethod]
public void AppSettings_CloneToDisplay_skip_object_Null_SecurityItems2_OpenTelemetrySettings()
{
var appSettings = new AppSettings
{
OpenTelemetry = null
};

var display = appSettings.CloneToDisplay();

Assert.IsNull(display.OpenTelemetry);
}

[TestMethod]
public void AppSettings_CloneToDisplay_hideSecurityItems_PublishProfiles()
Expand Down

0 comments on commit 5725431

Please sign in to comment.