8 instantiations of TestingAnnotation
Aspire.Hosting (1)
TestResourceBuilderExtensions.cs (1)
92
return builder.WithAnnotation(new
TestingAnnotation
Aspire.Hosting.Tests (7)
Cli\TestingCollectorTests.cs (1)
678
var annotation = new
TestingAnnotation
();
Cli\TestRunCoordinatorTests.cs (1)
219
resource.Annotations.Add(new
TestingAnnotation
());
Cli\TestRunStreamingTests.cs (5)
26
tests.Annotations.Add(new
TestingAnnotation
());
67
tests.Annotations.Add(new
TestingAnnotation
());
92
tests.Annotations.Add(new
TestingAnnotation
());
111
tests.Annotations.Add(new
TestingAnnotation
());
125
tests.Annotations.Add(new
TestingAnnotation
());
67 references to TestingAnnotation
Aspire.Hosting (8)
Cli\TestRunCoordinator.cs (3)
225
var resources = model.Resources.Where(r => r.TryGetLastAnnotation<
TestingAnnotation
>(out _)).ToArray();
254
resource.TryGetLastAnnotation<
TestingAnnotation
>(out
var
annotation);
TestResourceBuilderExtensions.cs (5)
30
/// <see cref="
TestingAnnotation
.Timeout"/> can additionally bound collection.
78
builder.Resource.TryGetLastAnnotation<
TestingAnnotation
>(out
var
annotation);
133
if (!builder.Resource.TryGetLastAnnotation<
TestingAnnotation
>(out
var
annotation))
Aspire.Hosting.Dotnet.Tests (15)
MsTestCollectorTests.cs (7)
144
var
options = resource.Resource.Annotations.OfType<
TestingAnnotation
>().Single();
168
var
annotation = resource.Resource.Annotations.OfType<
TestingAnnotation
>().Single();
209
var
options = resource.Resource.Annotations.OfType<
TestingAnnotation
>().Single();
331
return Path.Combine(resource.Resource.Annotations.OfType<
TestingAnnotation
>().Single().OutputPath!, "results.trx");
MsTestResourceTests.cs (8)
55
var
testing = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
147
var
original = Assert.Single(first.Resource.Annotations.OfType<
TestingAnnotation
>());
149
var
replacement = Assert.Single(first.Resource.Annotations.OfType<
TestingAnnotation
>());
179
var
annotation = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
Aspire.Hosting.RemoteHost.Tests (1)
JsonRpcCallbackInvokerTests.cs (1)
119
var collector = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>()).Collector!;
Aspire.Hosting.Tests (43)
Cli\TestingCollectorTests.cs (37)
65
var
annotation = Assert.Single(late.Resource.Annotations.OfType<
TestingAnnotation
>());
119
tests.Resource.Annotations.Remove(Assert.Single(tests.Resource.Annotations.OfType<
TestingAnnotation
>()));
165
typeof(TestResult), typeof(TestOutcome), typeof(
TestingAnnotation
), typeof(TestResourceBuilderExtensions) },
185
var
annotation = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
209
var
annotation = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
304
var
first = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
316
var
replacement = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
351
var
first = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
354
var
replacement = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
387
var
first = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
393
var
replacement = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
678
var
annotation = new TestingAnnotation();
692
Assert.Empty(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
701
var
annotation = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
707
Assert.Same(annotation, Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>()));
739
Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>()).Timeout = TimeSpan.FromMilliseconds(timeoutMilliseconds);
758
var
first = Assert.Single(firstResource.Resource.Annotations.OfType<
TestingAnnotation
>());
759
var
second = Assert.Single(secondResource.Resource.Annotations.OfType<
TestingAnnotation
>());
797
var
annotation = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
868
Assert.Empty(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
903
return Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>()).OutputPath!;
932
Assert.Single(resources.SelectMany(resource => resource.Resource.Annotations.OfType<
TestingAnnotation
>()));
940
var
annotation = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
Cli\TestRunCoordinatorTests.cs (1)
213
Assert.IsType<
TestingAnnotation
>(Assert.Single(resource.Annotations));
Cli\TestRunStreamingTests.cs (5)
161
var
first = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
167
var
annotation = Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());
183
Assert.Single(resource.Resource.Annotations.OfType<
TestingAnnotation
>());