コード例 #1
0
        public ClientEvent Translate(LogMessage message)
        {
            var testName = (string)message.Decorators[LogDecorator.NameProperty];
            var clientEventX = new TestExecutionMethodIgnoredClientEvent
                                   {
                                       ClassName = null,
                                       NamespaceName = null,
                                       MethodName = testName,
                                       Message = testName,
                                       Started = DateTime.Now,
                                   };

            return clientEventX;
        }
コード例 #2
0
ファイル: XUnitRunnerHost.cs プロジェクト: nnieslan/StatLight
        private static void SendTestIgnoredClientEvent(MethodInfo method, string message)
        {
            var ignoredEvent = new TestExecutionMethodIgnoredClientEvent
                                   {
                                       Message = message,
                                       Started = new DateTime(),
                                       Finished = new DateTime(),
                                   };

            PopulateCoreInfo(ignoredEvent, method);

            Server.PostMessage(ignoredEvent);
        }