44 references to WithTesting
Aspire.Hosting (1)
TestResourceBuilderExtensions.cs (1)
112
/// Call after <see cref="
WithTesting
{T}"/> or a framework helper that marks the resource for testing.
Aspire.Hosting.Dotnet (1)
MsTestHostingExtensions.cs (1)
113
resource.
WithTesting
(async context =>
Aspire.Hosting.Dotnet.Tests (2)
MsTestCollectorTests.cs (1)
326
.
WithTesting
(context => MsTestTrxReport.CollectAsync(context, reportDirectory));
MsTestResourceTests.cs (1)
148
first.
WithTesting
();
Aspire.Hosting.Tests (40)
Cli\TestingCollectorTests.cs (34)
52
builder.AddParameter("early", "value").
WithTesting
();
58
late.
WithTesting
(async context =>
115
var tests = builder.AddParameter("tests", "value").
WithTesting
();
146
var early = builder.AddParameter("early", "value").
WithTesting
();
152
var late = builder.AddParameter("late", "value").
WithTesting
();
180
var resource = builder.AddResource(new ContainerResource("tests")).
WithTesting
(_ =>
203
var resource = builder.AddResource(new ContainerResource("tests")).
WithTesting
(async context =>
272
var resource = builder.AddResource(new ContainerResource("tests")).
WithTesting
(context =>
298
resource.
WithTesting
(context =>
307
resource.
WithTesting
(async context =>
344
var resource = builder.AddResource(new ContainerResource("tests")).
WithTesting
(configureCollector
353
resource.
WithTesting
();
382
var resource = builder.AddResource(new ContainerResource("tests")).
WithTesting
(_ =>
388
resource.
WithTesting
(markerOnly ? null : _ =>
418
resource.
WithTesting
(async context =>
469
var resource = builder.AddResource(new ContainerResource("tests")).
WithTesting
(context =>
496
var resource = builder.AddResource(new ContainerResource("tests")).
WithTesting
(context =>
533
var first = builder.AddResource(new ContainerResource("first")).
WithTesting
(context =>
539
var second = builder.AddResource(new ContainerResource("second")).
WithTesting
(async context =>
570
var resource = builder.AddResource(new ContainerResource("tests")).
WithTesting
(async context =>
618
var first = builder.AddResource(new ContainerResource("first")).
WithTesting
(async context =>
633
var second = builder.AddResource(new ContainerResource("second")).
WithTesting
(async context =>
700
var resource = builder.AddResource(new ContainerResource("tests")).
WithTesting
(_ => Task.CompletedTask);
729
var resource = builder.AddResource(new ContainerResource("tests")).
WithTesting
(async context =>
756
var firstResource = builder.AddResource(new ContainerResource("first")).
WithTesting
();
757
var secondResource = builder.AddResource(new ContainerResource("second")).
WithTesting
();
796
var resource = builder.AddResource(new ContainerResource("tests")).
WithTesting
();
833
Assert.Throws<ArgumentException>(() => resource.
WithTesting
(_ =>
864
Assert.Throws<IOException>(() => resource.
WithTesting
());
885
Assert.Throws<IOException>(() => builder.AddResource(new ContainerResource("tests")).
WithTesting
());
902
var resource = builder.AddResource(new ContainerResource(name)).
WithTesting
();
924
Task.Run(() => Record.Exception(() => resource.
WithTesting
()))));
939
var resource = builder.AddResource(new ContainerResource("CON")).
WithTesting
();
951
var resource = builder.AddResource(new ContainerResource("tests")).
WithTesting
(async context =>
Cli\TestRunCoordinatorEndToEndTests.cs (3)
63
process.
WithTesting
(async context =>
72
var remaining = builder.AddParameter("remaining", "value").
WithTesting
();
131
builder.AddParameter("tests", "value").
WithTesting
(async context =>
Cli\TestRunCoordinatorTests.cs (1)
212
Assert.Same(resourceBuilder, resourceBuilder.
WithTesting
());
Cli\TestRunStreamingTests.cs (2)
156
resource.
WithTesting
(_ =>
162
resource.
WithTesting
(_ =>