Skip to content
Snippets Groups Projects
Commit 592f4d9d authored by Anton Piccardo-Selg's avatar Anton Piccardo-Selg
Browse files

Refs #10656 Removed test for BackgroundRgbProvider

parent 1aea2107
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,6 @@ set( SOURCE_FILES ...@@ -34,7 +34,6 @@ set( SOURCE_FILES
) )
set( TEST_FILES set( TEST_FILES
test/unitTests/BackgroundRgbProviderTest.h
test/unitTests/ColorMapManagerTest.h test/unitTests/ColorMapManagerTest.h
) )
......
#ifndef BACKGROUND_RGB_PROVIDER_TEST_H_
#define BACKGROUND_RGB_PROVIDER_TEST_H_
#include "MantidVatesSimpleGuiViewWidgets/BackgroundRgbProvider.h"
#include <cxxtest/TestSuite.h>
using namespace Mantid::Vates::SimpleGui;
class BackgroundRgbProviderTest : public CxxTest::TestSuite
{
public:
// As config service is not setup, the backgroundRgbProvider should return the default value
void testGetTheDefaultValue()
{
// Arrange
BackgroundRgbProvider backgroundRgbProvider;
// Act
std::vector<double> colors = backgroundRgbProvider.getRgb();
// Assert
TSM_ASSERT("Should have three default entries for r, g and b", colors.size()==3);
TSM_ASSERT("Should have the default value of r", colors[0] == 84.0/255.0);
TSM_ASSERT("Should have the default value of g", colors[1] == 89.0/255.0);
TSM_ASSERT("Should have the default value of b", colors[2] == 109.0/255.0);
}
};
#endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment