public void CommentaryGetCreatorUserTest() { User creatorUser = new User("Nombre", "Apellido", "Email", birthDate, "Password", teamsUser); Commentary commentary = new Commentary(creationDateTime, creatorUser, "Comentario"); Assert.AreEqual(commentary.getCreatorUser().getName(), "Nombre"); }
public void CommentarySetCreatorUserTest() { Commentary commentary = new Commentary(creationDateTime, creatorUser, "Comentario"); User creatorUserNew = new User("NombreNew", "ApellidoNew", "EmailNew", birthDate, "PasswordNew", teamsUser); commentary.setCreatorUser(creatorUserNew); Assert.AreEqual(commentary.getCreatorUser(), creatorUserNew); }