final String[] expectedTasks,
final String[] unexpectedTasks) {
runTestForSubProject(relativeProjectName, new ProjectConnectionTask() {
public void doTask(ProjectConnection connection) throws Exception {
GradleMultiProjectDef projectDef = fetchProjectDef(connection);
testBasicInfoForProject(relativeProjectName, projectDef);
GradleProjectTree mainProject = projectDef.getMainProject();
GenericProjectProperties genericProperties = mainProject.getGenericProperties();
assertEquals("Build script for the project must be build.gradle.",
new File(genericProperties.getProjectDir(), "build.gradle"),
genericProperties.getBuildScript());