24 instantiations of TestAnnotation
Aspire.Hosting.Tests (24)
ApplicationModel\ResourceAnnotationCollectionTests.cs (24)
12
var annotation = new
TestAnnotation
("test");
24
var annotation = new
TestAnnotation
("test");
37
collection.Add(new
TestAnnotation
("one"));
38
collection.Add(new
TestAnnotation
("two"));
39
collection.Add(new
TestAnnotation
("three"));
50
var original = new
TestAnnotation
("original");
51
var replacement = new
TestAnnotation
("replacement");
64
var testAnnotation1 = new
TestAnnotation
("test1");
65
var testAnnotation2 = new
TestAnnotation
("test2");
82
collection.Add(new
TestAnnotation
("test"));
93
collection.Add(new
TestAnnotation
("one"));
94
collection.Add(new
TestAnnotation
("two"));
107
var first = new
TestAnnotation
("first");
108
var second = new
TestAnnotation
("second");
123
collection.Add(new
TestAnnotation
($"item{i}"));
136
collection.Add(new
TestAnnotation
("new-during-enumeration"));
153
collection.Add(new
TestAnnotation
($"item{i}"));
164
collection.Add(new
TestAnnotation
("new-during-enumeration"));
180
collection.Add(new
TestAnnotation
($"initial{i}"));
197
collection.Add(new
TestAnnotation
($"added{Interlocked.Increment(ref addRemoveIterations)}"));
268
collection.Add(new
TestAnnotation
("test"));
275
collection.Add(new
TestAnnotation
("new"));
292
collection.Add(new
TestAnnotation
("test"));
299
collection.Add(new
TestAnnotation
("new"));
15 references to TestAnnotation
Aspire.Hosting.Tests (15)
ApplicationModel\ResourceAnnotationCollectionTests.cs (15)
12
var
annotation = new TestAnnotation("test");
24
var
annotation = new TestAnnotation("test");
50
var
original = new TestAnnotation("original");
51
var
replacement = new TestAnnotation("replacement");
64
var
testAnnotation1 = new TestAnnotation("test1");
65
var
testAnnotation2 = new TestAnnotation("test2");
71
var testAnnotations = collection.OfType<
TestAnnotation
>().ToArray();
85
Assert.True(collection.OfType<
TestAnnotation
>().Any());
107
var
first = new TestAnnotation("first");
108
var
second = new TestAnnotation("second");
112
var
result = collection.OfType<
TestAnnotation
>().FirstOrDefault();
159
foreach (
var
item in collection.OfType<
TestAnnotation
>())
231
GC.KeepAlive(collection.OfType<
TestAnnotation
>().Count());