26 references to GetTelemetryCommonProperties
dotnet (1)
Telemetry\Telemetry.cs (1)
157
_commonProperties = new TelemetryCommonProperties().
GetTelemetryCommonProperties
(CurrentSessionId);
dotnet.Tests (25)
TelemetryCommonPropertiesTests.cs (25)
21
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId").Should().ContainKey("Docker Container");
28
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Current Path Hash"].Should().NotBe("ADirectory");
35
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Machine ID"].Should().NotBe("plaintext");
42
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["devdeviceid"].Should().Be("plaintext");
49
var assignedMachineId = unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Machine ID"];
58
var assignedMachineId = unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["devdeviceid"];
61
var secondAssignedMachineId = unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["devdeviceid"];
71
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Machine ID Old"].Should().NotBe("plaintext");
78
var assignedMachineId = unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Machine ID Old"];
87
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Output Redirected"].Should().BeOneOf("True", "False");
94
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Continuous Integration"].Should().BeOneOf("True", "False");
101
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Kernel Version"].Should().Be(RuntimeInformation.OSDescription);
108
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["OS Architecture"].Should().Be(RuntimeInformation.OSArchitecture.ToString());
115
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Installation Type"].Should().NotBeEmpty();
122
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Installation Type"].Should().BeEmpty();
129
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Product Type"].Should().NotBeEmpty();
136
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Product Type"].Should().BeEmpty();
143
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Libc Release"].Should().BeEmpty();
144
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Libc Version"].Should().BeEmpty();
151
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Libc Release"].Should().BeEmpty();
152
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Libc Version"].Should().BeEmpty();
161
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Libc Release"].Should().NotBeEmpty();
162
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["Libc Version"].Should().NotBeEmpty();
170
unitUnderTest.
GetTelemetryCommonProperties
("dummySessionId")["llm"].Should().BeOneOf("claude", null);
221
var commonProperties = unitUnderTest.
GetTelemetryCommonProperties
(sessionId);