1 // Copyright (C) 2009-2016 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #include <cppunit/extensions/HelperMacros.h>
21 #include "hexa_base.hxx"
22 #include "HexVertex.hxx"
23 #include "HexVertexTest.hxx"
25 CPPUNIT_TEST_SUITE_REGISTRATION( VertexTest );
28 VertexTest::VertexTest(void)
30 _myHexEngine = new HEXA_NS::Hex();
31 _myDoc= _myHexEngine->addDocument();
34 VertexTest::~VertexTest(void)
37 delete _myHexEngine; //CS_TODO : Bug
41 void VertexTest::TestGetX(void)
44 // std::cout<<"Hellllllooooooo TestGetX";
46 // HEXA_NS::Vertex myVertex( xValue, 8. ,4. );
47 HEXA_NS::Vertex *myVertex = _myDoc->addVertex( xValue, 8. ,4. );
49 CPPUNIT_ASSERT( myVertex->getX() == xValue );
50 // CPPUNIT_ASSERT_ASSERTION_FAIL( CPPUNIT_ASSERT( myClassa.getVar() == testValue ) );
53 void VertexTest::TestGetY(void)
56 // HEXA_NS::Vertex myVertex( 1. ,yValue ,4. );
57 HEXA_NS::Vertex *myVertex = _myDoc->addVertex( 1. ,yValue ,4. );
59 CPPUNIT_ASSERT( myVertex->getY() == yValue );
60 // CPPUNIT_ASSERT_ASSERTION_FAIL( CPPUNIT_ASSERT( myClassa.getVar() == testValue ) );
64 void VertexTest::TestGetZ(void)
68 // HEXA_NS::Vertex myVertex( 1. ,8. ,zValue );
69 HEXA_NS::Vertex *myVertex = _myDoc->addVertex( 1. ,8. ,zValue );
71 CPPUNIT_ASSERT( myVertex->getZ() == zValue );
72 // CPPUNIT_ASSERT_ASSERTION_FAIL( CPPUNIT_ASSERT( myClassa.getVar() == testValue ) );