public void CheckRemove() { var myList = new FigureList(); var rnd = new Random(); for (int i = 0; i < 7; i++) { myList.Add(new Figure(1, i, 0, 0, 0, 0), 0); } myList.Remove(new Figure(1, 0, 0, 0, 0, 0)); Assert.AreEqual(6, myList.Count()); }
public void CheckRemove() { var myList = new FigureList(); var rnd = new Random(); for (int i = 0; i < 7; i++) { myList.Add(new Figure(1, i, 0, 0, 0, 0), 0); } myList.Remove(new Figure(1, 0, 0, 0, 0, 0)); Assert.AreEqual(6, myList.Count()); }