public void TestProjectDependencyIsNotAvailableThroughDriver() { MockTelemetry mockTelemetry = new MockTelemetry(); string[] args = { "help" }; Program.ProcessArgs(args, mockTelemetry); Assert.Equal(mockTelemetry.EventName, args[0]); }
public void TestProjectDependencyIsNotAvailableThroughDriver() { MockTelemetry mockTelemetry = new MockTelemetry(); string[] args = { "help" }; Microsoft.DotNet.Cli.Program.ProcessArgs(args, mockTelemetry); Assert.Equal(mockTelemetry.EventName, args[0]); }
public void InternalreportinstallsuccessCommandCollectExeNameWithEventname() { MockTelemetry mockTelemetry = new MockTelemetry(); string[] args = { "c:\\mypath\\dotnet-sdk-latest-win-x64.exe" }; InternalReportinstallsuccess.ProcessInputAndSendTelemetry(args, mockTelemetry); mockTelemetry.EventName.Should().Be("reportinstallsuccess"); mockTelemetry.Properties["exeName"].Should().Be("dotnet-sdk-latest-win-x64.exe"); }