當前位置: 首頁>>代碼示例>>C#>>正文


C# Workspaces.CSharpTestWorkspaceFixture類代碼示例

本文整理匯總了C#中Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces.CSharpTestWorkspaceFixture的典型用法代碼示例。如果您正苦於以下問題:C# CSharpTestWorkspaceFixture類的具體用法?C# CSharpTestWorkspaceFixture怎麽用?C# CSharpTestWorkspaceFixture使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


CSharpTestWorkspaceFixture類屬於Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces命名空間,在下文中一共展示了CSharpTestWorkspaceFixture類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: XmlDocumentationCommentCompletionProviderTests

 public XmlDocumentationCommentCompletionProviderTests(CSharpTestWorkspaceFixture workspaceFixture) : base(workspaceFixture)
 {
 }
開發者ID:tvsonar,項目名稱:roslyn,代碼行數:3,代碼來源:XmlDocumentationCommentCompletionProviderTests.cs

示例2: SuggestionModeCompletionProviderTests

 public SuggestionModeCompletionProviderTests(CSharpTestWorkspaceFixture workspaceFixture) : base(workspaceFixture)
 {
 }
開發者ID:GuilhermeSa,項目名稱:roslyn,代碼行數:3,代碼來源:SuggestionModeCompletionProviderTests.cs

示例3: VerifyWorkerAsync

        private async Task VerifyWorkerAsync(string markup, bool isBuilder)
        {
            MarkupTestFile.GetPosition(markup, out var code, out int position);

            using (var workspaceFixture = new CSharpTestWorkspaceFixture())
            {
                var document1 = await workspaceFixture.UpdateDocumentAsync(code, SourceCodeKind.Regular);
                await CheckResultsAsync(document1, position, isBuilder);

                if (await CanUseSpeculativeSemanticModelAsync(document1, position))
                {
                    var document2 = await workspaceFixture.UpdateDocumentAsync(code, SourceCodeKind.Regular, cleanBeforeUpdate: false);
                    await CheckResultsAsync(document2, position, isBuilder);
                }
            }
        }
開發者ID:GuilhermeSa,項目名稱:roslyn,代碼行數:16,代碼來源:SuggestionModeCompletionProviderTests.cs

示例4: PartialTypeCompletionProviderTests

 public PartialTypeCompletionProviderTests(CSharpTestWorkspaceFixture workspaceFixture) : base(workspaceFixture)
 {
 }
開發者ID:Rickinio,項目名稱:roslyn,代碼行數:3,代碼來源:PartialTypeCompletionProviderTests.cs

示例5: EnumAndCompletionListTagCompletionProviderTests

 public EnumAndCompletionListTagCompletionProviderTests(CSharpTestWorkspaceFixture workspaceFixture) : base(workspaceFixture)
 {
 }
開發者ID:ralfkang,項目名稱:roslyn,代碼行數:3,代碼來源:EnumAndCompletionListTagCompletionProviderTests.cs

示例6: CrefCompletionProviderTests

 public CrefCompletionProviderTests(CSharpTestWorkspaceFixture workspaceFixture) : base(workspaceFixture)
 {
 }
開發者ID:gustavoasoares,項目名稱:roslyn,代碼行數:3,代碼來源:CrefCompletionProviderTests.cs

示例7: ObjectCreationCompletionProviderTests

 public ObjectCreationCompletionProviderTests(CSharpTestWorkspaceFixture workspaceFixture) : base(workspaceFixture)
 {
 }
開發者ID:nileshjagtap,項目名稱:roslyn,代碼行數:3,代碼來源:ObjectCreationCompletionProviderTests.cs

示例8: ObjectInitializerCompletionProviderTests

 public ObjectInitializerCompletionProviderTests(CSharpTestWorkspaceFixture workspaceFixture) : base(workspaceFixture)
 {
 }
開發者ID:RoryVL,項目名稱:roslyn,代碼行數:3,代碼來源:ObjectInitializerCompletionProviderTests.cs

示例9: SymbolCompletionProviderTests_NoInteractive

 public SymbolCompletionProviderTests_NoInteractive(CSharpTestWorkspaceFixture workspaceFixture) : base(workspaceFixture)
 {
 }
開發者ID:nileshjagtap,項目名稱:roslyn,代碼行數:3,代碼來源:SymbolCompletionProviderTests_NoInteractive.cs

示例10: ObjectCreationExpressionSignatureHelpProviderTests

 public ObjectCreationExpressionSignatureHelpProviderTests(CSharpTestWorkspaceFixture workspaceFixture) : base(workspaceFixture)
 {
 }
開發者ID:Rickinio,項目名稱:roslyn,代碼行數:3,代碼來源:ObjectCreationExpressionSignatureHelpProviderTests.cs

示例11: LoadDirectiveCompletionProviderTests

 public LoadDirectiveCompletionProviderTests(CSharpTestWorkspaceFixture workspaceFixture) : base(workspaceFixture)
 {
 }
開發者ID:nileshjagtap,項目名稱:roslyn,代碼行數:3,代碼來源:LoadDirectiveCompletionProviderTests.cs

示例12: VerifyWorker

        private void VerifyWorker(string markup, bool isBuilder)
        {
            string code;
            int position;
            MarkupTestFile.GetPosition(markup, out code, out position);

            using (var workspaceFixture = new CSharpTestWorkspaceFixture())
            {
                var document1 = workspaceFixture.UpdateDocument(code, SourceCodeKind.Regular);
                CheckResults(document1, position, isBuilder);

                if (CanUseSpeculativeSemanticModel(document1, position))
                {
                    var document2 = workspaceFixture.UpdateDocument(code, SourceCodeKind.Regular, cleanBeforeUpdate: false);
                    CheckResults(document2, position, isBuilder);
                }
            }
        }
開發者ID:GloryChou,項目名稱:roslyn,代碼行數:18,代碼來源:SuggestionModeCompletionProviderTests.cs

示例13: ConstructorInitializerSignatureHelpProviderTests

 public ConstructorInitializerSignatureHelpProviderTests(CSharpTestWorkspaceFixture workspaceFixture) : base(workspaceFixture)
 {
 }
開發者ID:gustavoasoares,項目名稱:roslyn,代碼行數:3,代碼來源:ConstructorInitializerSignatureHelpProviderTests.cs

示例14: TupleConstructionSignatureHelpProviderTests

 public TupleConstructionSignatureHelpProviderTests(CSharpTestWorkspaceFixture workspaceFixture) : base(workspaceFixture)
 {
 }
開發者ID:jkotas,項目名稱:roslyn,代碼行數:3,代碼來源:TupleConstructionSignatureHelpProviderTests.cs

示例15: GenericNameSignatureHelpProviderTests

 public GenericNameSignatureHelpProviderTests(CSharpTestWorkspaceFixture workspaceFixture) : base(workspaceFixture)
 {
 }
開發者ID:CAPCHIK,項目名稱:roslyn,代碼行數:3,代碼來源:GenericNameSignatureHelpProviderTests.cs


注:本文中的Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces.CSharpTestWorkspaceFixture類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。