/// <summary> /// Conditional check, if the message is of a granular nature, a test /// group, and in the finishing stage. /// </summary> /// <param name="message">The log message.</param> /// <returns>Returns true when the conditions are met.</returns> private bool MarksTestGroupCompletion(LogMessage message) { if (message.HasDecorators(LogDecorator.TestGranularity, LogDecorator.TestStage)) { TestGranularity granularity = (TestGranularity) message[LogDecorator.TestGranularity]; TestStage stage = (TestStage) message[LogDecorator.TestStage]; bool ok = granularity == TestGranularity.TestGroup || granularity == TestGranularity.Harness; return ok && stage == TestStage.Finishing; } return false; }