Menu

bewbie: testing procedural methods of a class

Help
Germano
2007-04-25
2013-04-22
  • Germano

    Germano - 2007-04-25

    Hi

    I'm just giving the first steps in the use of cppunit, and the CookBook, which is the only documentation I read so far, gave me instructions about how testing classes that produce some data output based on data input. But, in my case, the bigger interest is in finding a tool able to test methods that perform some operation, for example writing raw data straight to the sectors of a formated hard disk or compact flash card - actually this is my exact need at the moment.
    If anyone could give help, point out documentation, or at least tell me that cppunit *is* able to do such a thing, even that would help already.
    Very thanks in advance.

    Germano

     
    • Code Guru

      Code Guru - 2007-04-26

      How exactly would you test if this method works correctly?  In other words, how can you determine if the method succeeded?  Can you describe a test scenario in words?  This might help you get started in implenting the test in CppUnit.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.