Wiki

Clone wiki

steganodotnet3 / Home

Possible unit tests:

  • select carrier image
  • file open
  • Selecting input text file
  • Open input text
  • Read input text
  • Alternatively Enter strings of text
  • Select and store password
  • Select output image
  • Insert text into image
  • Save image
  • Open image
  • extract data to screen
  • Extract data to file

Refactorings:

  • cleaning up HideOrExtarct function:
  1. extract method to create CountPixels method

  2. extract method to create the SaveBitmaps method

  3. extract method to create WriteBitmapLength method

  4. extract method to create CountRequiredPixels method

  5. extract method to create CheckImageSize method

other:

  1. encapsulate field for ImagesHide in Form1.cs
  2. extract class on ImagesHide into Images class
  3. encapsulate field for imagesExtract in form1.cs
  4. move field on imagesExtract to Images class

  5. used move method on CheckImageSize and CountRequiredPixels to the Images class

  6. used move method on CountPixels method to the Images class
  7. used move method on SaveBitmap, setcolorcomponent, getcolorcomponent, and UnTrimColorString methods to the Images class

  8. performed another extract class for the cryptkey class, to hold the information about the key information for the project

  9. used move method on GetReverseKeyByte, CreateKeyStream, and GetKeyStream methods to the new class

  10. performed encapsulate field on keys private variable in the form1.cs file

  11. performed move field on the keys variable from form1.cs to the new CryptKey class

  12. Performed Replace Nested Conditional refactoring on CryptKey.cs, CryptUtility.cs, Form1.cs, and ImageFilesDialog.cs.

  13. Replace Assignment with Initialization refactoring completed
  14. Reduce Scope of Variable completed.
  15. Remove unnecessary Using statements. Reduce overhead.
  16. Redundant Name Qualifiers removed in GUI source code.

  17. Added the explaining variable refactoring to move pixel method in cryptutility

Updated