public async Task Basic_EmptyProjectCannotBuild() { // This test focuses on a completely empty project. nuproj.RemoveItems(nuproj.GetItems("Content")); var result = await MSBuild.ExecuteAsync(nuproj.CreateProjectInstance(), this.logger); // Verify that the build fails and tells the user why. Assert.Equal(BuildResultCode.Failure, result.Result.OverallResult); Assert.NotEqual(0, result.ErrorEvents.Count()); }