public async void CompilationService_TestGistCompilation() { var gist = ScriptTestDataHelper.GetGist(); var metadata = new EntityMetadata(gist, EntityType.Gist); var scriptOptions = ScriptTestDataHelper.GetScriptOption(ScriptHelper.GetFrameworkReferences(), ScriptHelper.GetFrameworkImports()); var serviceInstance = CompilationServiceFactory.CreateService(metadata, scriptOptions); var compilation = await serviceInstance.GetCompilationAsync(); var diagnostics = await compilation.GetDiagnosticsAsync(); Assert.Empty(diagnostics.Select(d => d.Severity == DiagnosticSeverity.Error)); }