Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

frametest.h

00001 
00002 #include <cxxtest/TestSuite.h>
00003 
00004 #include <cstring>
00005 
00006 #include "../../src/domain/animation/frame.h"
00007 
00008        
00009 
00010 class FrameTest : public CxxTest::TestSuite 
00011 {
00012 private:
00013         Frame *f;
00014         
00015 public:
00016         
00017         void setUp()
00018         {
00019                 /*f = new Frame("testpath");
00020                 f->addSound("lyd0");
00021                 f->setSoundName(0, "sound0");
00022                 f->addSound("lyd1");
00023                 f->setSoundName(1, "sound1");
00024                 f->addSound("lyd2");
00025                 f->setSoundName(2, "sound2");*/
00026         }
00027         
00028         void tearDown()
00029         {
00030                 //delete f;
00031         }
00032         
00033         void test_getImagePath()
00034         {
00035                 //TS_ASSERT_EQUALS( strcmp(f->getImagePath(), "testpath"), 0);
00036         }
00037         
00038         void test_getSoundPath()
00039         {
00040 
00041                 /*TS_ASSERT_EQUALS( strcmp(f->getSoundPath(0), "lyd0"), 0);
00042                 TS_ASSERT_EQUALS( strcmp(f->getSoundPath(1), "lyd1"), 0);
00043                 TS_ASSERT_EQUALS( strcmp(f->getSoundPath(2), "lyd2"), 0);*/
00044         }
00045         
00046         void test_getNumberOfSounds() 
00047         {
00048                 //TS_ASSERT_EQUALS( f->getNumberOfSounds(), 3 );
00049         }
00050         
00051         void test_getSoundName()
00052         {
00053                 /*TS_ASSERT(strcmp(f->getSoundName(0), "sound0") == 0);
00054                 TS_ASSERT(strcmp(f->getSoundName(2), "sound2") == 0);*/
00055         }
00056         
00057 }; 

Generated on Thu May 19 01:51:21 2005 for stopmotion.kdevelop by  doxygen 1.4.2