public void ReadFileAndCheckRowCount() { TextFileReader reader = new TextFileReader(TestFolder + "TestFile1.sha1"); Sha1File sumFile = new Sha1File(); List <Pair <string> > itemList = sumFile.ReadData(reader); Assert.AreEqual(itemList.Count, _testFile1RowCount); }
public void ReadFile() { TextFileReader reader = new TextFileReader(TestFolder + "TestFile1.sha1"); Sha1File sumFile = new Sha1File(); 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++; } }
public void ReadFileAndCheckRowCount() { TextFileReader reader = new TextFileReader(TestFolder + "TestFile1.sha1"); Sha1File sumFile = new Sha1File(); List<Pair<string>> itemList = sumFile.ReadData(reader); Assert.AreEqual(itemList.Count, _testFile1RowCount); }
public void ReadFile() { TextFileReader reader = new TextFileReader(TestFolder + "TestFile1.sha1"); Sha1File sumFile = new Sha1File(); 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++; } }