From ca9f67f3b74deb36209334f7c2ec91580fc62658 Mon Sep 17 00:00:00 2001 From: CountrySideEngineer Date: Fri, 12 May 2023 22:24:24 +0900 Subject: [PATCH] Add comments. --- .../Command/TestExecuteAsyncCommand.cs | 24 ++++++++++++++++--- .../gtest_gui/Command/TestExecuteCommand.cs | 3 +++ 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/dev/src/gtest_gui/gtest_gui/Command/TestExecuteAsyncCommand.cs b/dev/src/gtest_gui/gtest_gui/Command/TestExecuteAsyncCommand.cs index 62a49f5..00ac782 100644 --- a/dev/src/gtest_gui/gtest_gui/Command/TestExecuteAsyncCommand.cs +++ b/dev/src/gtest_gui/gtest_gui/Command/TestExecuteAsyncCommand.cs @@ -15,12 +15,24 @@ namespace gtest_gui.Command { public class TestExecuteAsyncCommand : TestExecuteCommand { + /// + /// Run test async. + /// protected TestRunnerAsync _runnerAsync; + /// + /// Content window class. + /// protected CountrySideEngineer.ContentWindow.ContentWindow _contentWindow; - protected CountrySideEngineer.ProgressWindow.ProgressWindow _proressWindow; + /// + /// Progress window class. + /// + protected ProgressWindow _proressWindow; + /// + /// Default constructor. + /// public TestExecuteAsyncCommand() : base() { _runnerAsync = new TestRunnerAsync(); @@ -28,6 +40,10 @@ public TestExecuteAsyncCommand() : base() _proressWindow = new CountrySideEngineer.ProgressWindow.ProgressWindow(); } + /// + /// Constructor with argument. + /// + /// public TestExecuteAsyncCommand(TestRunner runner) : base(runner) { _runnerAsync = new TestRunnerAsync(); @@ -47,8 +63,7 @@ public override object ExecuteCommand(TestCommandArgument cmdArgument) { SetUpTestRunner(cmdArgument); - string testFileName = System.IO.Path.GetFileNameWithoutExtension(cmdArgument.TestInfo.TestFile); - _contentWindow.ViewTitle = testFileName; + _contentWindow.ViewTitle = System.IO.Path.GetFileNameWithoutExtension(cmdArgument.TestInfo.TestFile); _contentWindow.Start(); _proressWindow.Start(_runnerAsync); @@ -99,6 +114,9 @@ protected override void SetUpTestRunner(TestCommandArgument cmdArg) _runnerAsync.TestInfo = cmdArg.TestInfo; } + /// + /// Teardown the test. + /// protected override void TearDownTestRunner() { base.TearDownTestRunner(); diff --git a/dev/src/gtest_gui/gtest_gui/Command/TestExecuteCommand.cs b/dev/src/gtest_gui/gtest_gui/Command/TestExecuteCommand.cs index cc29ff3..cad3095 100644 --- a/dev/src/gtest_gui/gtest_gui/Command/TestExecuteCommand.cs +++ b/dev/src/gtest_gui/gtest_gui/Command/TestExecuteCommand.cs @@ -135,6 +135,9 @@ protected virtual void SetUpTestRunner(TestCommandArgument cmdArg) } } + /// + /// Tear down the test. + /// protected virtual void TearDownTestRunner() { _runner.TestDataReceivedEventHandler -= _logBuilder.OnDataReceived;