public void ListObjectIsCreated() { PersonList TestList = new PersonList(); int tempNum = TestList.Count(); Assert.True(tempNum == 0); }
private void ButtonDown_Click(object sender, EventArgs e) { if (listBox1.SelectedIndex < PersonList.Count() - 1) { listBox1.SelectedIndex += 1; } }
public void Svc_Get_returns_all_when_persons_present() { var service = new SearchService(_repoFilled.Object); var result = service.Get(); Assert.AreEqual(PersonList.Count(), result.Count()); }
private void Timer1_Tick(object sender, EventArgs e) { timer1.Interval = 1000; if (listBox1.SelectedIndex == PersonList.Count() - 1) { Down = false; } else if (listBox1.SelectedIndex == 0) { Down = true; } if (Down) { ButtonDown_Click(this, e); } else { Button1_Click(this, e); } }