Candidate_v1.7.0
        stable
      
      
        
          | Last change
 on this file since 1e6591 was             cb30d9, checked in by Frederik Heber <heber@…>, 9 years ago | 
        
          | 
Extended SamplingGridProperties::isCompatible() to allow more finely resolved grids, added ::isEquivalent().
 isEquivalent contains the old check and we replaced isCompatible() by it.
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.0 KB | 
      
      
| Rev | Line |  | 
|---|
| [c889b7] | 1 | /* | 
|---|
|  | 2 | * SamplingGridPropertiesUnitTest.hpp | 
|---|
|  | 3 | * | 
|---|
|  | 4 | *  Created on: Jul 29, 2012 | 
|---|
|  | 5 | *      Author: heber | 
|---|
|  | 6 | */ | 
|---|
|  | 7 |  | 
|---|
|  | 8 | #ifndef SAMPLINGGRIDPROPERTIESUNITTEST_HPP_ | 
|---|
|  | 9 | #define SAMPLINGGRIDPROPERTIESUNITTEST_HPP_ | 
|---|
|  | 10 |  | 
|---|
|  | 11 | // include config.h | 
|---|
|  | 12 | #ifdef HAVE_CONFIG_H | 
|---|
|  | 13 | #include <config.h> | 
|---|
|  | 14 | #endif | 
|---|
|  | 15 |  | 
|---|
|  | 16 |  | 
|---|
|  | 17 | #include <cppunit/extensions/HelperMacros.h> | 
|---|
|  | 18 |  | 
|---|
| [fbf143] | 19 | #include "Fragmentation/Summation/SetValues/SamplingGridProperties.hpp" | 
|---|
| [c889b7] | 20 |  | 
|---|
|  | 21 | /********************************************** Test classes **************************************/ | 
|---|
|  | 22 |  | 
|---|
|  | 23 | class SamplingGridPropertiesTest : public CppUnit::TestFixture | 
|---|
|  | 24 | { | 
|---|
|  | 25 | CPPUNIT_TEST_SUITE( SamplingGridPropertiesTest) ; | 
|---|
| [cb30d9] | 26 | CPPUNIT_TEST ( isEquivalent_Test ); | 
|---|
| [c889b7] | 27 | CPPUNIT_TEST ( isCompatible_Test ); | 
|---|
|  | 28 | CPPUNIT_TEST ( equality_Test ); | 
|---|
| [955051] | 29 | CPPUNIT_TEST ( serializeTest ); | 
|---|
| [c889b7] | 30 | CPPUNIT_TEST_SUITE_END(); | 
|---|
|  | 31 |  | 
|---|
|  | 32 | public: | 
|---|
|  | 33 | void setUp(); | 
|---|
|  | 34 | void tearDown(); | 
|---|
| [cb30d9] | 35 | void isEquivalent_Test(); | 
|---|
| [c889b7] | 36 | void isCompatible_Test(); | 
|---|
|  | 37 | void equality_Test(); | 
|---|
| [955051] | 38 | void serializeTest(); | 
|---|
| [c889b7] | 39 |  | 
|---|
|  | 40 | private: | 
|---|
|  | 41 | SamplingGridProperties *props; | 
|---|
|  | 42 |  | 
|---|
|  | 43 | }; | 
|---|
|  | 44 |  | 
|---|
|  | 45 | #endif /* SAMPLINGGRIDPROPERTIESUNITTEST_HPP_ */ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.