func (suite *StandardStreamTestSuite) TestExecute() {
	newIOHandler := iohandler.NewDefaultIOHandler(suite.mockLog, contracts.IOConfiguration{})
	mockShellPlugin := new(shell.IShellPluginMock)
	mockShellPlugin.On("Execute", suite.mockContext, mock.Anything, suite.mockCancelFlag, newIOHandler, suite.mockDataChannel, mgsContracts.ShellProperties{}).Return()
	suite.plugin.shell = mockShellPlugin

	suite.plugin.Execute(suite.mockContext,
		contracts.Configuration{Properties: suite.shellProps},
		suite.mockCancelFlag,
		newIOHandler,
		suite.mockDataChannel)

	mockShellPlugin.AssertExpectations(suite.T())
	assert.Equal(suite.T(), 0, newIOHandler.GetExitCode())
}
// Testing Execute happy case when the exit code is 0.
Testing Execute happy case when the exit code is 0.
// Testing Execute happy case when the exit code is 0 .
func (suite *StandardStreamTestSuite) TestExecute() {
	newIOHandler := iohandler.NewDefaultIOHandler(suite.mockLog, contracts.IOConfiguration{})
	mockShellPlugin := new(shell.IShellPluginMock)
	mockShellPlugin.On("Execute", suite.mockContext, mock.Anything, suite.mockCancelFlag, newIOHandler, suite.mockDataChannel, mgsContracts.ShellProperties{}).Return()
	suite.plugin.shell = mockShellPlugin
	suite.plugin.Execute(suite.mockContext,
		contracts.Configuration{Properties: suite.shellProps},
		suite.mockCancelFlag,
		newIOHandler,
		suite.mockDataChannel)
	mockShellPlugin.AssertExpectations(suite.T())
	assert.Equal(suite.T(), 0, newIOHandler.GetExitCode())
}
func ( suite * StandardStreamTestSuite ) TestExecute ( ) { newIOHandler := iohandler . NewDefaultIOHandler ( suite . mockLog , contracts . IOConfiguration { } ) mockShellPlugin := new ( shell . IShellPluginMock ) mockShellPlugin . On ( " " , suite . mockContext , mock . Anything , suite . mockCancelFlag , newIOHandler , suite . mockDataChannel , mgsContracts . ShellProperties { } ) . Return ( ) suite . plugin . shell = mockShellPlugin suite . plugin . Execute ( suite . mockContext , contracts . Configuration { Properties : suite . shellProps } , suite . mockCancelFlag , newIOHandler , suite . mockDataChannel ) mockShellPlugin . AssertExpectations ( suite . T ( ) ) assert . Equal ( suite . T ( ) , 0 , newIOHandler . GetExitCode ( ) ) }
Testing Execute happy case when the exit code is 0.
Testing Execute happy case when the exit code is 0 .