Exemple #1
0
 // Use this for initialization
 void Start()
 {
     foreach (CreditStaff person in staff)
     {
         CreditsItem member = Instantiate(creditStaffPrefab, container.transform).GetComponent <CreditsItem>();
         member.SetName(person.name);
         member.SetFunction(person.function);
         member.SetLogo(person.logo);
     }
 }
Exemple #2
0
        public void MovieCreditsTest()
        {
            CreditsItem expected = new CreditsItem();

            expected.Character  = "Luke Skywalker";
            expected.Department = null;
            expected.Id         = 2;
            expected.Name       = "Mark Hamill";
            CreditsItem[] actual = new TheMovieDbClient().MovieCredits(11);
            Assert.AreEqual(expected.Character, actual[0].Character);
            Assert.AreEqual(expected.Department, actual[0].Department);
            Assert.AreEqual(expected.Id, actual[0].Id);
            Assert.AreEqual(expected.Name, actual[0].Name);
        }