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