9 references to new
Aspire.Hosting (3)
Pipelines\DefaultPipelineOutputComparer.cs (3)
41changes.Add(new(PipelineOutputChangeKind.Added, Path.GetRelativePath(outputDirectory, path))); 45changes.Add(new(PipelineOutputChangeKind.Removed, Path.GetRelativePath(outputDirectory, path))); 50changes.Add(new(PipelineOutputChangeKind.Changed, Path.GetRelativePath(outputDirectory, path)));
Aspire.Hosting.Tests (6)
Pipelines\PipelineOutputChangeTests.cs (3)
20var change = new PipelineOutputChange(PipelineOutputChangeKind.Changed, path); 31Assert.Throws<ArgumentException>(() => new PipelineOutputChange(PipelineOutputChangeKind.Added, path)); 40Assert.Throws<ArgumentException>(() => new PipelineOutputChange(PipelineOutputChangeKind.Removed, path));
Pipelines\PipelineOutputDiffingTests.cs (2)
1091changes.Add(new PipelineOutputChange(kind, path)); 1189? [new(PipelineOutputChangeKind.Changed, Path.GetFileName(snapshotter.Artifact))] : []);
Pipelines\PipelineOutputResolutionTests.cs (1)
262before.Content == after.Content ? [] : [new(PipelineOutputChangeKind.Changed, "artifact.txt")]);