Revision cfed7823 trunk/Pithos.Network/Signature.cs

b/trunk/Pithos.Network/Signature.cs
17 17
        {
18 18
            if (info==null)
19 19
                throw new ArgumentNullException("info");
20
            if (String.IsNullOrWhiteSpace(info.FullName))
21
                throw new ArgumentException("info.FullName is empty","info");
20 22
            Contract.EndContractBlock();
21 23

  
22 24
            return CalculateMD5(info.FullName);
......
74 76
        {
75 77
            if (fileInfo==null)
76 78
                throw new ArgumentNullException("fileInfo");
79
            if (String.IsNullOrWhiteSpace(fileInfo.FullName))
80
                throw new ArgumentException("fileInfo.FullName is empty","fileInfo");
77 81
            if (blockSize <= 0)
78 82
                throw new ArgumentOutOfRangeException("blockSize", "blockSize must be a value greater than zero ");
79 83
            if (String.IsNullOrWhiteSpace(algorithm))
......
108 112
        {
109 113
            if (fileInfo == null)
110 114
                throw new ArgumentNullException("fileInfo");
115
            if (String.IsNullOrWhiteSpace(fileInfo.FullName))
116
                throw new ArgumentNullException("fileInfo.FullName is empty","fileInfo");
111 117
            if (blockSize <= 0)
112 118
                throw new ArgumentOutOfRangeException("blockSize", "blockSize must be a value greater than zero ");
113 119
            if (String.IsNullOrWhiteSpace(algorithm))

Also available in: Unified diff