File: BlockTest.hh

package info (click to toggle)
tyvis 20031216-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,024 kB
  • ctags: 2,985
  • sloc: cpp: 22,881; sh: 8,372; makefile: 353
file content (29 lines) | stat: -rw-r--r-- 570 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>

#include "tyvis/Block.hh"

class BlockTest : public CppUnit::TestFixture {
  CPPUNIT_TEST_SUITE( BlockTest);
  CPPUNIT_TEST(testAddRemoveElement);
  CPPUNIT_TEST(testEqual);
  CPPUNIT_TEST(testReset);

  // <--Add new block tests here!  

  CPPUNIT_TEST_SUITE_END();

private:
  Block block;
  int *ptr, *ptr2;
  // Add new variables for the test here

public:
  // Test interface
  void setUp();
  void tearDown();

  void testAddRemoveElement();
  void testEqual();
  void testReset();
};