Beispiel #1
0
        public void ReadFileAndCheckRowCount()
        {
            TextFileReader reader = new TextFileReader(TestFolder + "TestFile1.md5");

            MD5File sumFile = new MD5File();
            List <Pair <string> > itemList = sumFile.ReadData(reader);

            Assert.AreEqual(itemList.Count, _testFile1RowCount);
        }
Beispiel #2
0
        public void ReadFile()
        {
            TextFileReader reader = new TextFileReader(TestFolder + "TestFile1.md5");

            MD5File sumFile = new MD5File();
            List <Pair <string> > itemList = sumFile.ReadData(reader);

            int i = 0;

            foreach (Pair <string> item in itemList)
            {
                // TODO: must validity-check values!
                Assert.AreEqual(item.Item1.ToString(), _checkSum[i]);
                i++;
            }
        }
Beispiel #3
0
        public void ReadFileAndCheckRowCount()
        {
            TextFileReader reader = new TextFileReader(TestFolder + "TestFile1.md5");

            MD5File sumFile = new MD5File();
            List<Pair<string>> itemList = sumFile.ReadData(reader);

            Assert.AreEqual(itemList.Count, _testFile1RowCount);
        }
Beispiel #4
0
        public void ReadFile()
        {
            TextFileReader reader = new TextFileReader(TestFolder + "TestFile1.md5");

            MD5File sumFile = new MD5File();
            List<Pair<string>> itemList = sumFile.ReadData(reader);

            int i = 0;
            foreach (Pair<string> item in itemList)
            {
                // TODO: must validity-check values!
                Assert.AreEqual(item.Item1.ToString(), _checkSum[i]);
                i++;
            }
        }