public void AddingTwoPersonsTest() { var persons = new List <Person>(); Task2.AddRangePersons(ref persons); Assert.IsNotNull(persons); Assert.AreEqual(2, persons.Count); }
private static void DoTask1AndTask2() { List <Person> persons = Task1.GetListPersons(); foreach (var person in persons) { Console.WriteLine($"Name: {person.Name}, Age: {person.Age}"); } Task2.AddRangePersons(ref persons); foreach (var person in persons) { Console.Write("Numbers: "); foreach (var number in person.PhoneNumbers) { Console.Write(number + " "); } Console.WriteLine(); } }