public void WriteImage()

in TeamCity.ServiceMessages/Write/Special/Impl/Writer/TeamCityTestWriter.cs [58:69]


        public void WriteImage(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", "image"}, {"value", teamCityArtifactUri}};
            if (!string.IsNullOrEmpty(description))
            {
                message.Add("name", description);
            }

            PostMessage(message);
        }