From 75f39aa58ee4e9969ddc15133e00d759bcdd3a60 Mon Sep 17 00:00:00 2001
From: Pranav Bahuguna <pranav.bahuguna@stfc.ac.uk>
Date: Thu, 3 Nov 2016 13:42:07 +0000
Subject: [PATCH] Re #16983 Added tests for transmission runs settings

---
 MantidQt/CustomInterfaces/test/ReflMockObjects.h             | 1 +
 .../CustomInterfaces/test/ReflSettingsTabPresenterTest.h     | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/MantidQt/CustomInterfaces/test/ReflMockObjects.h b/MantidQt/CustomInterfaces/test/ReflMockObjects.h
index c6bed8c8ab0..da375c41516 100644
--- a/MantidQt/CustomInterfaces/test/ReflMockObjects.h
+++ b/MantidQt/CustomInterfaces/test/ReflMockObjects.h
@@ -85,6 +85,7 @@ public:
   MOCK_CONST_METHOD0(getLambdaMax, std::string());
   MOCK_CONST_METHOD0(getI0MonitorIndex, std::string());
   MOCK_CONST_METHOD0(getProcessingInstructions, std::string());
+  MOCK_CONST_METHOD0(getTransmissionRuns, std::string());
   MOCK_CONST_METHOD1(setExpDefaults, void(const std::vector<std::string> &));
   MOCK_CONST_METHOD1(setInstDefaults, void(const std::vector<double> &));
 
diff --git a/MantidQt/CustomInterfaces/test/ReflSettingsTabPresenterTest.h b/MantidQt/CustomInterfaces/test/ReflSettingsTabPresenterTest.h
index 5eb7e3894b2..41c34c41b13 100644
--- a/MantidQt/CustomInterfaces/test/ReflSettingsTabPresenterTest.h
+++ b/MantidQt/CustomInterfaces/test/ReflSettingsTabPresenterTest.h
@@ -144,6 +144,9 @@ public:
     EXPECT_CALL(mockView, getProcessingInstructions())
         .Times(Exactly(1))
         .WillOnce(Return("\"3,4\""));
+    EXPECT_CALL(mockView, getTransmissionRuns())
+        .Times(Exactly(1))
+        .WillOnce(Return("INTER00013463.nxs,INTER00013464.nxs"));
     auto options = presenter.getReductionOptions();
 
     std::vector<std::string> optionsVec;
@@ -166,6 +169,8 @@ public:
     TS_ASSERT_EQUALS(optionsVec[15], "ScaleFactor=2");
     TS_ASSERT_EQUALS(optionsVec[16], "MomentumTransferStep=-0.02");
     TS_ASSERT_EQUALS(optionsVec[17], "ProcessingInstructions=\"3,4\"");
+    TS_ASSERT_EQUALS(optionsVec[18], "FirstTransmissionRun=TRANS_INTER00013463.nxs");
+    TS_ASSERT_EQUALS(optionsVec[19], "SecondTransmissionRun=TRANS_INTER00013464.nxs");
 
     TS_ASSERT(Mock::VerifyAndClearExpectations(&mockView));
   }
-- 
GitLab