Пример #1
0
        public void WriteServiceMessage_CorrectlyFormatsMessages()
        {
            // Arrange
            var serviceMessage = ServiceMessage.Create("do-it", ("foo", "1"), ("bar", null));

            // Testing functionality from abstract base class, so it doesn't matter that this is a test class.
            var sut = new InMemoryLog();

            // Act
            sut.WriteServiceMessage(serviceMessage);

            // Assert
            sut.Messages.Should().ContainSingle().Which.FormattedMessage.Should().Be("##octopus[do-it foo=\"MQ==\"]");
        }