public MainForm(Member_tbl memberTbl) { InitializeComponent(); this.memberTbl = memberTbl; mainContent = new MainContent(); movieContent = new MovieContent(); MainCheck_Change(); }
public void MovieTextAssertion() { List <string> listOfTables = new List <string>(); List <string> listOfContext = new List <string>() { "Title", "Running time", "Genre", "Description", "Release date" }; for (int i = 0; i < MovieContent.Count(); i++) { List <string> listOfContent = new List <string>(); listOfTables.Add(MovieContent[i].ToString()); for (int j = 0; j < ContentText.Count(); j++) { if (j == 0) { listOfContent.Add(ContentText[j].Text.Substring(0, 5)); } if (j == 1) { listOfContent.Add(ContentText[j].Text.Substring(0, 12)); } if (j == 2) { listOfContent.Add(ContentText[j].Text.Substring(0, 5)); } if (j == 3) { listOfContent.Add(ContentText[j].Text.Substring(0, 11)); } if (j == 4) { listOfContent.Add(ContentText[j].Text.Substring(0, 12)); } Assert.AreEqual(listOfContext[j], listOfContent[j]); } } }