示例#1
0
        public void WhenChecksumFilePathIsEmpty_ThrowEx()
        {
            var checksum = new ChecksumMD5();
            var filePath = "";

            Assert.Throws <System.ArgumentException>(() => checksum.CalculateChecksum(filePath));
        }
示例#2
0
        public void WhenChecksumHas32Characters_ReturnTrue()
        {
            var checksum       = new ChecksumMD5();
            var filePath       = @"C:\Users\Dell\Documents\chinook.db";
            var checksumLength = checksum.CalculateChecksum(filePath);

            Assert.AreEqual(checksumLength.Length, 32);
        }