コード例 #1
0
        public void FindPetByIndex_Should_Return_Correct_Pet()
        {
            Pet petToChoose = new Pet();

            sut.AddPet(petToChoose);
            int myPetIndex = sut.ShelterList.IndexOf(petToChoose);

            Pet returnedFromList = sut.FindPetByIndex(myPetIndex);

            Assert.True(petToChoose.Equals(returnedFromList));
        }