Skip to content

Commit

Permalink
Add missing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamnamboodiripad committed Oct 5, 2023
1 parent 599484e commit 4f65c65
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/dotnet-interactive.Tests/CommandLine/StartupTelemetryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,23 @@ public StartupTelemetryTests()

public void Dispose() => _disposables.Dispose();

[Fact]
public async Task VS_sends_frontend_telemetry()
{
await _parser.InvokeAsync(
"""
[vs9628] stdio --working-dir D:\Notebooks --kernel-host 9628-5c7e913f-8966-4afe-8d37-cc863292a352
""",
_console);

_fakeTelemetrySender.TelemetryEvents.Should().Contain(
x => x.EventName == "command" &&
x.Properties.Count == 3 &&
x.Properties["verb"] == "STDIO".ToSha256Hash() &&
x.Properties["frontend"] == "vs" &&
x.Properties["default-kernel"] == "CSHARP".ToSha256Hash());
}

[Fact]
public async Task Jupyter_standalone_command_sends_telemetry()
{
Expand Down

0 comments on commit 4f65c65

Please sign in to comment.