Exemplo n.º 1
0
        public void OldestPersonTest_GivenPerson_CorrectResult(string firstName, string secondName, string sex, int age)
        {
            Person expectedPerson = new Person
            {
                FirstName = firstName,
                LastName  = secondName,
                Sex       = sex,
                Age       = age
            };
            CommandReceiver receiver = new CommandReceiver(list);

            Assert.Equal(expectedPerson, receiver.OldestPerson());
        }