public void Delete_EmptyList_ListIsEmptyException()
        {
            // Arrange
            LinkList <Person> list = new LinkList <Person>();

            // Act
            list.Delete(Student.GeneratePupil());

            // Assert
        }
        public void Delete_NotExistedStudent_ItemNotFoundException()
        {
            // Arrange
            LinkList <Person> list    = new LinkList <Person>();
            Student           student = new Student("ИмяСтудента1", 25, 2);

            list.Add(Student.GeneratePupil());
            list.Add(Student.GeneratePupil());
            list.Add(Student.GeneratePupil());
            list.Add(Student.GeneratePupil());
            list.Add(Student.GeneratePupil());

            // Act
            list.Delete(student);

            // Assert
        }
        public void Delete_ListWith6Items_Count5()
        {
            // Arrange
            LinkList <Person> list    = new LinkList <Person>();
            Student           student = new Student("ИмяСтудента1", 25, 2);

            list.Add(Student.GeneratePupil());
            list.Add(student);
            list.Add(student);
            list.Add(Student.GeneratePupil());
            list.Add(student);
            list.Add(Student.GeneratePupil());

            // Act
            list.Delete(student);

            int expectedCount = 5;
            int actualCount   = list.Count;

            // Assert
            Assert.AreEqual(expectedCount, actualCount);
            Assert.AreEqual(list[1], student);
            Assert.AreEqual(list[3], student);
        }