public byte[] GetSum(string optionSum)
 {
     ControlSum controlSum = new ControlSum();
     if (optionSum == "MD5")
     {
         return controlSum.MD5SUm(PathFile + "enc");
     }
     else
         return controlSum.SHASUM(PathFile + "enc");
 }
예제 #2
0
 public void FilePathIsNull_MD5sum()
 {
     ControlSum controlSum = new ControlSum();
     controlSum.MD5SUm(null);
 }
예제 #3
0
 public void FileIsNotFound_MD5sum()
 {
     ControlSum controlSum = new ControlSum();
     controlSum.MD5SUm("asd.txt");
 }