예제 #1
0
        public void Execute_引数で指定されたIExecutableのExecuteメソッドが呼ばれることを確認()
        {
            // Arrange
              var executable = new ExecutableForUnitTest();
              var target     = new CuiAppProcessExecutor();

              // Act
              target.Execute(executable);

              // Assert
              Assert.IsTrue(executable.ExecuteCalled);
        }
예제 #2
0
        public void Execute_引数で指定されたIExecutableのExecuteメソッドが呼ばれることを確認()
        {
            // Arrange
            var executable = new ExecutableForUnitTest();
            var target     = new CuiAppProcessExecutor();

            // Act
            target.Execute(executable);

            // Assert
            Assert.IsTrue(executable.ExecuteCalled);
        }
예제 #3
0
        public void Execute_Executableの実行前と実行後にSTARTとENDログが出力されることを確認()
        {
            // Arrange
              var outputManager = new FirstLastRememberOutputManager();
              Output.OutputManager = outputManager;

              var executable = new ExecutableForUnitTest();
              var target = new CuiAppProcessExecutor();

              // Act
              target.Execute(executable);

              // Assert
              Assert.AreEqual<string>(target.StartLogMessage, outputManager.First.ToString());
              Assert.AreEqual<string>(target.EndLogMessage, outputManager.Last.ToString());
        }
예제 #4
0
        public void Execute_Executableの実行前と実行後にSTARTとENDログが出力されることを確認()
        {
            // Arrange
            var outputManager = new FirstLastRememberOutputManager();

            Output.OutputManager = outputManager;

            var executable = new ExecutableForUnitTest();
            var target     = new CuiAppProcessExecutor();

            // Act
            target.Execute(executable);

            // Assert
            Assert.AreEqual <string>(target.StartLogMessage, outputManager.First.ToString());
            Assert.AreEqual <string>(target.EndLogMessage, outputManager.Last.ToString());
        }