Skip to content

Commit

Permalink
c18 test
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Oct 18, 2024
1 parent 1d8e47a commit 1f22e78
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,22 @@ public void ArgsHelper_NeedHelpShowDialog_OpenTelemetry()
$"{appSettings.OpenTelemetry.MetricsEndpoint}")));
}

[TestMethod]
public void ArgsHelper_NeedHelpShowDialog_OpenTelemetry_Null()
{
var console = new FakeConsoleWrapper();
var appSettings = new AppSettings
{
ApplicationType = AppSettings.StarskyAppType.Sync,
OpenTelemetry = null, // on purpose null
Verbose = true
};
new ArgsHelper(appSettings, console).NeedHelpShowDialog();

// does not contain OpenTelemetry, because it is null
Assert.IsFalse(console.WrittenLines.Exists(p => p.Contains("OpenTelemetry")));
}

[TestMethod]
public void ArgsHelper_NeedHelpShowDialog_Null_Test()
{
Expand Down

0 comments on commit 1f22e78

Please sign in to comment.