1 write to TestingContext
Aspire.Hosting (1)
TestResourceBuilderExtensions.cs (1)
96TestingContext = testingContext,
31 references to TestingContext
Aspire.Hosting (3)
Cli\TestRunCoordinator.cs (2)
255var configured = annotation is { TestingContext: not null, OutputPath: not null, Collector: not null }; 264if (annotation is not { TestingContext: { } testingContext, OutputPath: { } outputPath, Collector: { } collector })
TestResourceBuilderExtensions.cs (1)
79var testingContext = annotation?.TestingContext;
Aspire.Hosting.Dotnet.Tests (7)
MsTestCollectorTests.cs (3)
147var context = new ResourceTestingContext(options.TestingContext!, "tests", options.OutputPath!, 188var context = new ResourceTestingContext(annotation.TestingContext!, "tests", annotation.OutputPath!, 222var context = new ResourceTestingContext(options.TestingContext!, "tests", options.OutputPath!,
MsTestResourceTests.cs (4)
81Assert.Null(testing.TestingContext); 150Assert.Same(original.TestingContext, replacement.TestingContext); 181Assert.Null(annotation.TestingContext);
Aspire.Hosting.Tests (21)
Cli\TestingCollectorTests.cs (17)
188Assert.Null(annotation.TestingContext); 216Assert.Same(annotation.TestingContext, context.TestingContext); 311Assert.Same(first.TestingContext, context.TestingContext); 319Assert.Same(first.TestingContext, replacement.TestingContext); 322first.TestingContext!.OutputPath))); 357Assert.Same(first.TestingContext, replacement.TestingContext); 361first.TestingContext!.OutputPath))); 395Assert.Null(replacement.TestingContext); 704var testingContext = annotation.TestingContext; 710Assert.Same(testingContext, annotation.TestingContext); 760Assert.Equal(Path.Combine(first.TestingContext!.OutputPath, "first"), first.OutputPath); 761Assert.Equal(Path.Combine(second.TestingContext!.OutputPath, "second"), second.OutputPath); 763Assert.Equal(first.TestingContext!.OutputPath, second.TestingContext!.OutputPath); 942Assert.Null(annotation.TestingContext);
Cli\TestRunStreamingTests.cs (4)
170Assert.Same(first.TestingContext, annotation.TestingContext); 174Assert.Equal(path, annotation.TestingContext!.OutputPath); 181Assert.Null(annotation.TestingContext);