public void Add_TwoPersonObjectToList_FirstIndexValue() { //Arrange Addition add = new Addition(); Person personOne = new Person() { Name = "Bob", Age = 31 }; Person personTwo = new Person() { Name = "Frank", Age = 19 }; string expected = "Bob"; string actual; //Act List <Person> ReturnedPeople = add.AddPeople(personOne, personTwo); actual = ReturnedPeople[0].Name; // actual = add.AddPeople(personOne, personTwo)[0].Name; //Assert Assert.AreEqual(expected, actual); }