From 6bad1574c53c226d3ef07ab8b8d560b6715fc206 Mon Sep 17 00:00:00 2001 From: Akshita Agarwal Date: Mon, 28 May 2018 12:19:07 +0530 Subject: [PATCH] rename --- src/observers/DotnetTestLoggerObserver.ts | 8 ++++---- src/omnisharp/protocol.ts | 4 ++-- test/unitTests/logging/DotnetTestLoggerObserver.test.ts | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/observers/DotnetTestLoggerObserver.ts b/src/observers/DotnetTestLoggerObserver.ts index cdd0918ff4..f34beab8c9 100644 --- a/src/observers/DotnetTestLoggerObserver.ts +++ b/src/observers/DotnetTestLoggerObserver.ts @@ -93,14 +93,14 @@ export default class DotNetTestLoggerObserver extends BaseLoggerObserver { this.logger.appendLine(result.ErrorStackTrace); } - if (result.StandardOutputMessages && result.StandardOutputMessages.length > 0) { + if (result.StandardOutput && result.StandardOutput.length > 0) { this.logger.appendLine("Standard Output Messages:"); - result.StandardOutputMessages.forEach(message => this.logger.appendLine(message)); + result.StandardOutput.forEach(message => this.logger.appendLine(message)); } - if (result.StandardErrorMessages && result.StandardErrorMessages.length > 0) { + if (result.StandardError && result.StandardError.length > 0) { this.logger.appendLine("Standard Error Messages:"); - result.StandardErrorMessages.forEach(message => this.logger.appendLine(message)); + result.StandardError.forEach(message => this.logger.appendLine(message)); } this.logger.appendLine(); diff --git a/src/omnisharp/protocol.ts b/src/omnisharp/protocol.ts index 33e42b05a4..b481a18173 100644 --- a/src/omnisharp/protocol.ts +++ b/src/omnisharp/protocol.ts @@ -609,8 +609,8 @@ export namespace V2 { Outcome: string; ErrorMessage: string; ErrorStackTrace: string; - StandardOutputMessages: string[]; - StandardErrorMessages: string[]; + StandardOutput: string[]; + StandardError: string[]; } export interface RunTestResponse { diff --git a/test/unitTests/logging/DotnetTestLoggerObserver.test.ts b/test/unitTests/logging/DotnetTestLoggerObserver.test.ts index 6c5150f048..1931dc2c2f 100644 --- a/test/unitTests/logging/DotnetTestLoggerObserver.test.ts +++ b/test/unitTests/logging/DotnetTestLoggerObserver.test.ts @@ -86,14 +86,14 @@ suite(`${DotNetTestLoggerObserver.name}`, () => { test(`Displays the standard output messages if any`, () => { observer.post(event); event.results.forEach(result => { - result.StandardOutputMessages.forEach(message => expect(appendedMessage).to.contain(message)); + result.StandardOutput.forEach(message => expect(appendedMessage).to.contain(message)); }); }); test(`Displays the standard error messages if any`, () => { observer.post(event); event.results.forEach(result => { - result.StandardErrorMessages.forEach(message => expect(appendedMessage).to.contain(message)); + result.StandardError.forEach(message => expect(appendedMessage).to.contain(message)); }); }); }); @@ -105,7 +105,7 @@ function getDotNetTestResults(methodname: string, outcome: string, errorMessage: Outcome: outcome, ErrorMessage: errorMessage, ErrorStackTrace: errorStackTrace, - StandardOutputMessages : stdoutMessages, - StandardErrorMessages: stdErrorMessages + StandardOutput : stdoutMessages, + StandardError: stdErrorMessages }; } \ No newline at end of file