public void NumActors_Add3_returns3() { Movie m1 = new DodgeyMovieCo.Movie() { ActorList = new System.Collections.Generic.List <Actor>() { new Actor() { ActorNo = 7743, FullName = "Pedro Ximinez", GivenName = "Pedro", Surname = "Ximinez" }, new Actor() { ActorNo = 7742, FullName = "Daniel Ortega", GivenName = "Daniel", Surname = "Ortega" }, new Actor() { ActorNo = 7744, FullName = "Tomas Borge", GivenName = "Tomas", Surname = "Borge" } } }; Assert.Equal(3, m1.NumActors()); }
public void NumActors_CheckReturned_Success() { Movie m1 = new DodgeyMovieCo.Movie() { ActorList = new System.Collections.Generic.List <Actor>() { } }; Assert.Equal(0, m1.NumActors()); }
public void NumActors_NotTheSame_Success() { Movie m1 = new DodgeyMovieCo.Movie() { ActorList = new System.Collections.Generic.List <Actor>() { } }; Assert.NotEqual(1, m1.NumActors()); }
public void NumActors_CheckType_Success() { Movie m1 = new DodgeyMovieCo.Movie() { ActorList = new System.Collections.Generic.List <Actor>() { } }; Assert.IsType <int>(m1.NumActors()); }