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