/// <inheritdoc/> public void LinkArtifact(string name, AzurePipelinesArtifactType type, string location) { WriteLoggingCommand("artifact.associate", new Dictionary <string, string> { ["artifactname"] = name, ["type"] = type.ToString() }, location); }
public void Should_Link_Build_Artifacts(string name, AzurePipelinesArtifactType type, string location) { // Given var fixture = new AzurePipelinesFixture(); var service = fixture.CreateAzurePipelinesService(); // When service.Commands.LinkArtifact(name, type, location); // Then Assert.Contains(fixture.Writer.Entries, m => m == $"##vso[artifact.associate artifactname={name};type={type};]{location}"); }