I've been working on making unit tests for ApplyPadding and ToByteArray. I tried making a random String generator to test both of these functions. Not only were the characters random, but so were the length of the Strings. I used random lengths to make sure that the padding worked in order to test that I get the right results from the function. I also made a random number generator from 0 to 3 to test all the padding modes used in ApplyPadding.
In order to test the ToByteArray I compared the Byte array I gave as input to making a state, and compared each value in the byte array with the output Byte array given from the ToByteArray function.
My teammates seem to be doing okay. I have seen that one (Lisa) of my teammates has been in the testing phase, I understand that my teammates have other priorities and may not have time yet to work on the project.
No comments:
Post a Comment