title: How to test some code using Google test?
body: <p>Basically I'm trying to start some unit tests in google test but not sure how to go about it. I have been given some code to try and test but I have no idea how to go about doing this. This is some of the code I need to test? Where should I start? Thanks in advance for any help.</p>
  
  <pre><code>void CCRC32::FullCRC(const unsigned char *sData, unsigned long ulDataLength, unsigned long *ulOutCRC)
  {
      *(unsigned long *)ulOutCRC = 0xffffffff; //Initilaize the CRC.
      this-&gt;PartialCRC(ulOutCRC, sData, ulDataLength);
      *(unsigned long *)ulOutCRC ^= 0xffffffff; //Finalize the CRC.
  }
  </code></pre>