5 instantiations of TestRunStatistics
Microsoft.TestPlatform.CommunicationUtilities (2)
_generated\51\TestPlatformJsonContext.TestRunStatistics.g.cs (1)
31ObjectCreator = () => new global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics(),
Serialization\TestRunStatisticsConverter.cs (1)
44return new TestRunStatistics(executedTests, stats);
Microsoft.TestPlatform.CrossPlatEngine (3)
Client\Parallel\ParallelRunDataAggregator.cs (1)
95var overallRunStats = new TestRunStatistics(testOutcomeMap);
Execution\BaseRunTests.cs (1)
605var runStats = TestRunCache?.TestRunStatistics ?? new TestRunStatistics(new Dictionary<TestOutcome, long>());
Execution\TestRunCache.cs (1)
159var stats = new TestRunStatistics(new Dictionary<TestOutcome, long>(_runStats));
33 references to TestRunStatistics
Microsoft.TestPlatform.CommunicationUtilities (23)
_generated\112\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (1)
226if (type == typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics))
_generated\51\TestPlatformJsonContext.TestRunStatistics.g.cs (20)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics>? _TestRunStatistics; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics> TestRunStatistics 22get => _TestRunStatistics ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics>)Options.GetTypeInfo(typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics> Create_TestRunStatistics(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics), 60Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics)obj).ExecutedTests, 61Setter = static (obj, value) => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics)obj).ExecutedTests = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics).GetProperty("ExecutedTests", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics), 80Getter = static obj => ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics)obj).Stats, 88AttributeProviderFactory = static () => typeof(global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics).GetProperty("Stats", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<global::Microsoft.VisualStudio.TestPlatform.ObjectModel.TestOutcome, long>), global::System.Array.Empty<global::System.Type>(), null), 98private void TestRunStatisticsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics? value) 108writer.WriteNumber(PropName_ExecutedTests, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics)value).ExecutedTests); 110global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Microsoft.VisualStudio.TestPlatform.ObjectModel.Client.TestRunStatistics)value).Stats, IDictionaryTestOutcomeInt64);
Serialization\TestRunStatisticsConverter.cs (1)
53if (value is TestRunStatistics concrete && concrete.Stats is not null)
TestPlatformJsonContext.cs (1)
55[JsonSerializable(typeof(TestRunStatistics))]
Microsoft.TestPlatform.CrossPlatEngine (7)
Client\Parallel\ParallelRunDataAggregator.cs (1)
95var overallRunStats = new TestRunStatistics(testOutcomeMap);
Execution\BaseRunTests.cs (2)
605var runStats = TestRunCache?.TestRunStatistics ?? new TestRunStatistics(new Dictionary<TestOutcome, long>()); 658private void OnCacheHit(TestRunStatistics testRunStats, ICollection<TestResult> results, ICollection<TestCase>? inProgressTestCases)
Execution\TestRunCache.cs (3)
106internal delegate void OnCacheHit(TestRunStatistics testRunStats, ICollection<TestResult> results, ICollection<TestCase> inProgressTests); 153public TestRunStatistics TestRunStatistics 159var stats = new TestRunStatistics(new Dictionary<TestOutcome, long>(_runStats));
Interfaces\ITestRunCache.cs (1)
22TestRunStatistics TestRunStatistics { get; }
Microsoft.VisualStudio.TestPlatform.ObjectModel (3)
Client\TestRunStatistics.cs (3)
16/// Initializes a new instance of the <see cref="TestRunStatistics"/> class. 27/// Initializes a new instance of the <see cref="TestRunStatistics"/> class. 36/// Initializes a new instance of the <see cref="TestRunStatistics"/> class.