void TreeView_Click(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right && treeView.SelectedNode != null) { TVMenu.Show(Cursor.Position); } }
public void AddShowTest() { var show = new TVShow(); show.ShowName = "The Devil Wears Prada"; show.MainActor = "Meryl Streep"; show.Genre = "Comedy"; show.Director = "David Frankel"; show.Rating = "PG-13"; var result = TVMenu.AddShow(); Assert.Equal(show, result); }