func (suite *StandardStreamTestSuite) TestExecuteWhenCancelFlagIsCancelled() {
	suite.mockCancelFlag.On("Canceled").Return(true)
	suite.mockCancelFlag.On("ShutDown").Return(false)
	suite.mockIohandler.On("MarkAsCancelled").Return(nil)
	suite.plugin.shell, _ = shell.NewPlugin(suite.plugin.name())

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

	suite.mockCancelFlag.AssertExpectations(suite.T())
	suite.mockIohandler.AssertExpectations(suite.T())
}
// Testing Execute when cancel flag is cancelled.
Testing Execute when cancel flag is cancelled.
// Testing Execute when cancel flag is cancelled .
func (suite *StandardStreamTestSuite) TestExecuteWhenCancelFlagIsCancelled() {
	suite.mockCancelFlag.On("Canceled").Return(true)
	suite.mockCancelFlag.On("ShutDown").Return(false)
	suite.mockIohandler.On("MarkAsCancelled").Return(nil)
	suite.plugin.shell, _ = shell.NewPlugin(suite.plugin.name())
	suite.plugin.Execute(suite.mockContext,
		contracts.Configuration{Properties: suite.shellProps},
		suite.mockCancelFlag,
		suite.mockIohandler,
		suite.mockDataChannel)
	suite.mockCancelFlag.AssertExpectations(suite.T())
	suite.mockIohandler.AssertExpectations(suite.T())
}
func ( suite * StandardStreamTestSuite ) TestExecuteWhenCancelFlagIsCancelled ( ) { suite . mockCancelFlag . On ( " " ) . Return ( true ) suite . mockCancelFlag . On ( " " ) . Return ( false ) suite . mockIohandler . On ( " " ) . Return ( nil ) suite . plugin . shell , _ = shell . NewPlugin ( suite . plugin . name ( ) ) suite . plugin . Execute ( suite . mockContext , contracts . Configuration { Properties : suite . shellProps } , suite . mockCancelFlag , suite . mockIohandler , suite . mockDataChannel ) suite . mockCancelFlag . AssertExpectations ( suite . T ( ) ) suite . mockIohandler . AssertExpectations ( suite . T ( ) ) }
Testing Execute when cancel flag is cancelled.
Testing Execute when cancel flag is cancelled .