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