/// <summary> /// Create an artifact link, such as a file or folder path or a version control path. /// </summary> /// <param name="name">The artifact name..</param> /// <param name="type">The artifact type.</param> /// <param name="location">The link path or value.</param> public void LinkArtifact(string name, TFBuildArtifactType type, string location) { WriteLoggingCommand("artifact.associate", new Dictionary <string, string> { ["artifactname"] = name, ["type"] = type.ToString() }, location); }
public void Should_Link_Build_Artifacts(string name, TFBuildArtifactType type, string location) { // Given var fixture = new TFBuildFixture(); var service = fixture.CreateTFBuildService(); // When service.Commands.LinkArtifact(name, type, location); // Then Assert.Contains(fixture.Log.Entries, m => m.Message == $"##vso[artifact.associate artifactname={name};type={type};]{location}"); }