public void TestMd5()
        {
            var checksumFile = new ChecksumFile(ChecksumMd5);
            var actual = checksumFile.Parse();

            Assert.AreEqual(ChecksumMd5Expected, actual);
        }
        public void ParseUnixFileTest()
        {
            var checksumFile = new ChecksumFile(ChecksumUnixFile);
            var actual = checksumFile.Parse();

            var expected = new List<ChecksumFileEntry>
                               {
                                   new ChecksumFileEntry
                                       {
                                           Hash = "5738077ABBE757E9D2DA3741115074B6",
                                           Path = "file01.bin",
                                           HashType = "MD5"
                                       }
                               };

            Assert.AreEqual(expected, actual);
        }
        public void TestSfv()
        {
            var checksumFile = new ChecksumFile(ChecksumSfv);
            var actual = checksumFile.Parse();

            Assert.AreEqual(ChecksumSfvExpected, actual);
        }
 public void ParseInvalidFileTest()
 {
     var checksumFile = new ChecksumFile(ChecksumInvalidFile);
     var actual = checksumFile.Parse();
     Assert.IsEmpty(actual);
 }
 private void ParseNonExistingFile()
 {
     var checksumFile = new ChecksumFile(NonExisingFile);
     checksumFile.Parse();
 }