using Microsoft.VisualStudio.TestTools.UnitTesting; using Bank_Teszt; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace Bank_Teszt.Tests { [TestClass()] public class TBankTests { [TestMethod()] public void TBankTest() { FileStream fileStream = new FileStream("szmla_gen.csv", FileMode.Open, FileAccess.Read); StreamReader streamReader = new StreamReader(fileStream); string line = streamReader.ReadLine(); while(line != null) { string[] datas = line.Split(); TBank user = new TBank(datas[0], datas[1], datas[2], Convert.ToInt32(datas[3])); line = streamReader.ReadLine(); } streamReader.Close(); fileStream.Close(); return; } } }