示例#1
0
        public void should_format_message_nicely()
        {
            var buildResult = new FakeIntegrationResult {
                ProjectName = "some name", Label = "ccnet-dev-1235", Status = IntegrationStatus.Success
            };
            var message = new IntegrationMessage(buildResult);

            Assert.That(message.ToString(), Is.EqualTo("[ccnet] Project 'some name' build complete. Result: Success. Label: ccnet-dev-1235."));
        }
 public void should_format_message_nicely()
 {
     var buildResult = new FakeIntegrationResult {ProjectName = "some name", Label = "ccnet-dev-1235", Status = IntegrationStatus.Success};
     var message = new IntegrationMessage(buildResult);
     Assert.That(message.ToString(), Is.EqualTo("[ccnet] Project 'some name' build complete. Result: Success. Label: ccnet-dev-1235."));
 }