Newer
Older
#ifndef MANTID_MDALGORITHMS_BOOLEANBINARYOPERATIONMDTEST_H_
#define MANTID_MDALGORITHMS_BOOLEANBINARYOPERATIONMDTEST_H_
#include "MantidMDAlgorithms/BooleanBinaryOperationMD.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
using namespace testing;
class MockBooleanBinaryOperationMD : public BooleanBinaryOperationMD
{
public:
MOCK_METHOD0(initExtraProperties, void());
MOCK_METHOD2(execHistoHisto, void(Mantid::DataObjects::MDHistoWorkspace_sptr, Mantid::DataObjects::MDHistoWorkspace_const_sptr));
class BooleanBinaryOperationMDTest : public CxxTest::TestSuite
{
public:
MockBooleanBinaryOperationMD alg;
EXPECT_CALL(alg, initExtraProperties()).Times(1);
alg.initialize();
TSM_ASSERT("Algorithm methods were called as expected", testing::Mock::VerifyAndClearExpectations(&alg));
}
};
#endif /* MANTID_MDALGORITHMS_BOOLEANBINARYOPERATIONMDTEST_H_ */