private void ReportArtifact(string artifactPath) { var fullpath = Path.GetFullPath(artifactPath); var message = ArtifactPublishMessage.Create(fullpath); Debug.Log(UnityTestProtocolMessageBuilder.Serialize(message)); }
public void CanCreateArtifactsPublishMessage() { var destination = "/dev/null"; var msg = ArtifactPublishMessage.Create(destination); Assert.That(msg.messageType, Is.EqualTo(ArtifactPublishMessage.MessageType)); Assert.That(msg.phase, Is.EqualTo(Message.ImmediatePhase)); Assert.That(msg["destination"], Is.EqualTo(destination)); }