in TeamCity.ServiceMessages/Write/Special/Impl/Writer/TeamCityTestWriter.cs [71:82]
public void WriteFile(string teamCityArtifactUri, string description = "")
{
if (string.IsNullOrEmpty(teamCityArtifactUri)) throw new ArgumentException(nameof(teamCityArtifactUri));
if (description == null) throw new ArgumentNullException(nameof(description));
var message = new ServiceMessage("testMetadata") {{"testName", _testName}, {"type", "artifact"}, {"value", teamCityArtifactUri}};
if (!string.IsNullOrEmpty(description))
{
message.Add("name", description);
}
PostMessage(message);
}