Exemplo n.º 1
0
    private void ReportArtifact(string artifactPath)
    {
        var fullpath = Path.GetFullPath(artifactPath);
        var message  = ArtifactPublishMessage.Create(fullpath);

        Debug.Log(UnityTestProtocolMessageBuilder.Serialize(message));
    }
Exemplo n.º 2
0
        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));
        }