1514 references to TestHost
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1102)
Classification\AbstractCSharpClassifierTests.cs (4)
17string code, ParseOptions? options, TestHost testHost) 25TestHost testHost, 33TestHost testHost, 40protected override async Task DefaultTestAsync(string code, string allCode, TestHost testHost, FormattedClassification[] expected)
Classification\SemanticClassifierTests.cs (190)
32string code, ImmutableArray<TextSpan> spans, ParseOptions? options, TestHost testHost) 41public Task GenericClassDeclaration(TestHost testHost) 50public Task RefVar(TestHost testHost) 57public Task UsingAlias1(TestHost testHost) 67public Task DynamicAsTypeArgument(TestHost testHost) 76public async Task UsingTypeAliases(TestHost testHost) 95public Task DynamicTypeAlias(TestHost testHost) 113public Task DynamicAsDelegateName(TestHost testHost) 130public Task DynamicAsInterfaceName(TestHost testHost) 146public Task DynamicAsEnumName(TestHost testHost) 162public Task DynamicAsClassName(TestHost testHost) 179public Task DynamicAsRecordName(TestHost testHost) 195public Task DynamicAsClassNameAndLocalVariableName(TestHost testHost) 210public Task DynamicAsStructName(TestHost testHost) 226public Task DynamicAsGenericClassName(TestHost testHost) 242public Task DynamicAsGenericClassNameButOtherArity(TestHost testHost) 258public Task DynamicAsUndefinedGenericType(TestHost testHost) 274public Task DynamicAsExternAlias(TestHost testHost) 288public Task GenericClassNameButOtherArity(TestHost testHost) 303public Task GenericTypeParameter(TestHost testHost) 317public Task GenericMethodTypeParameter(TestHost testHost) 334public Task GenericMethodTypeParameterInLocalVariableDeclaration(TestHost testHost) 349public Task ParameterOfLambda1(TestHost testHost) 365public Task ParameterOfAnonymousMethod(TestHost testHost) 381public Task GenericTypeParameterAfterWhere(TestHost testHost) 393public Task BaseClass(TestHost testHost) 408public Task BaseInterfaceOnInterface(TestHost testHost) 423public Task BaseInterfaceOnClass(TestHost testHost) 438public Task InterfaceColorColor(TestHost testHost) 455public Task DelegateColorColor(TestHost testHost) 469public Task DelegateReturnsItself(TestHost testHost) 485public Task StructColorColor(TestHost testHost) 497public Task EnumColorColor(TestHost testHost) 515public Task DynamicAsGenericTypeParameter(TestHost testHost) 527public Task DynamicAsGenericFieldName(TestHost testHost) 539public Task PropertySameNameAsClass(TestHost testHost) 564public Task AttributeWithoutAttributeSuffix(TestHost testHost) 580public Task AttributeOnNonExistingMember(TestHost testHost) 595public Task AttributeWithoutAttributeSuffixOnAssembly(TestHost testHost) 612public Task AttributeViaNestedClassOrDerivedClass(TestHost testHost) 640public Task NamedAndOptional(TestHost testHost) 661public Task PartiallyWrittenGenericName1(TestHost testHost) 670public Task PartiallyWrittenGenericName2(TestHost testHost) 683public Task ColorColor(TestHost testHost) 695public Task ColorColor2(TestHost testHost) 715public Task ColorColor3(TestHost testHost) 741public Task ColorColor4(TestHost testHost) 764public Task ColorColor5(TestHost testHost) 787public Task ColorColor6(TestHost testHost) 811public Task ColorColor7(TestHost testHost) 833public Task ColorColor8(TestHost testHost) 857public Task ColorColor9(TestHost testHost) 877public Task ColorColor10(TestHost testHost) 896public Task ColorColor11(TestHost testHost) 914public Task ColorColor12(TestHost testHost) 933public Task ColorColor13(TestHost testHost) 952public Task ColorColor14(TestHost testHost) 971public Task NamespaceNameSameAsTypeName1(TestHost testHost) 991public Task NamespaceNameSameAsTypeNameWithGlobal(TestHost testHost) 1013public Task AmbiguityTypeAsGenericMethodArgumentVsLocal(TestHost testHost) 1031public Task AmbiguityTypeAsGenericArgumentVsLocal(TestHost testHost) 1055public Task AmbiguityTypeAsGenericArgumentVsField(TestHost testHost) 1083public Task GrammarAmbiguity_7_5_4_2(TestHost testHost) 1120public Task AnonymousTypePropertyName(TestHost testHost) 1137public Task YieldAsATypeName(TestHost testHost) 1162public Task TypeNameDottedNames(TestHost testHost) 1179public Task BindingTypeNameFromBCLViaGlobalAlias(TestHost testHost) 1195public async Task BindingTypeNames(TestHost testHost) 1233public Task Constructors(TestHost testHost) 1264public Task TypesOfClassMembers(TestHost testHost) 1329public Task NAQTypeNameCtor(TestHost testHost) 1341public Task NAQEnum(TestHost testHost) 1358public Task NAQDelegate(TestHost testHost) 1374public Task NAQTypeNameMethodCall(TestHost testHost) 1382public Task NAQEventSubscription(TestHost testHost) 1398public Task AnonymousDelegateParameterType(TestHost testHost) 1419public Task NAQCtor(TestHost testHost) 1431public Task NAQSameFileClass(TestHost testHost) 1440public Task InteractiveNAQSameFileClass(TestHost testHost) 1450public Task NAQSameFileClassWithNamespace(TestHost testHost) 1476public Task NAQSameFileClassWithNamespaceAndEscapedKeyword(TestHost testHost) 1502public Task NAQGlobalWarning(TestHost testHost) 1528public Task NAQUserDefinedNAQNamespace(TestHost testHost) 1554public Task NAQUserDefinedNAQNamespaceDoubleColon(TestHost testHost) 1580public Task NAQUserDefinedNamespace1(TestHost testHost) 1609public Task NAQUserDefinedNamespaceWithGlobal(TestHost testHost) 1638public Task NAQUserDefinedNAQForClass(TestHost testHost) 1659public Task NAQUserDefinedTypes(TestHost testHost) 1747public Task PreferPropertyOverNestedClass(TestHost testHost) 1774public Task TypeNameInsideNestedClass(TestHost testHost) 1803public Task StructEnumTypeNames(TestHost testHost) 1831public Task PreferFieldOverClassWithSameName(TestHost testHost) 1847public Task AttributeBinding(TestHost testHost) 1894public Task ShouldNotClassifyNamespacesAsTypes(TestHost testHost) 1910public Task NestedTypeCantHaveSameNameAsParentType(TestHost testHost) 1931public Task NestedTypeCantHaveSameNameAsParentTypeWithGlobalNamespaceAlias(TestHost testHost) 1947public Task InteractiveNestedTypeCantHaveSameNameAsParentTypeWithGlobalNamespaceAlias(TestHost testHost) 1964public Task EnumFieldWithSameNameShouldBePreferredToType(TestHost testHost) 1977public Task TestGenericVarClassification(TestHost testHost) 2000public Task TestInaccessibleVarClassification(TestHost testHost) 2027public Task TestVarNamedTypeClassification(TestHost testHost) 2043public Task RegressionFor9513(TestHost testHost) 2081public Task RegressionFor9572(TestHost testHost) 2104public Task RegressionFor9831(TestHost testHost) 2126public Task TestVar(TestHost testHost) 2157public Task TestVar2(TestHost testHost) 2176public Task TestDuplicateTypeParamWithConstraint(TestHost testHost) 2196public Task OptimisticallyColorFromInDeclaration(TestHost testHost) 2203public Task OptimisticallyColorFromInAssignment(TestHost testHost) 2217public async Task DoNotColorThingsOtherThanFromInDeclaration(TestHost testHost) 2222public Task DoNotColorThingsOtherThanFromInAssignment(TestHost testHost) 2235public Task DoNotColorFromWhenBoundInDeclaration(TestHost testHost) 2248public Task DoNotColorFromWhenBoundInAssignment(TestHost testHost) 2264public Task NewOfClassWithOnlyPrivateConstructor(TestHost testHost) 2287public Task TestNullableVersusConditionalAmbiguity1(TestHost testHost) 2307public Task TestPointerVersusMultiplyAmbiguity1(TestHost testHost) 2327public Task EnumTypeAssignedToNamedPropertyOfSameNameInAttributeCtor(TestHost testHost) 2350public Task OnlyClassifyGenericNameOnce(TestHost testHost) 2366public Task NameOf1(TestHost testHost) 2382public Task NameOf2(TestHost testHost) 2399public Task NameOfLocalMethod(TestHost testHost) 2428public Task MethodCalledNameOfInScope(TestHost testHost) 2449public Task Tuples(TestHost testHost) 2462public Task DevDiv261049RegressionTest(TestHost testHost) 2473public Task InXmlDocCref_WhenTypeOnlyIsSpecified_ItIsClassified(TestHost testHost) 2491public Task InXmlDocCref_WhenConstructorOnlyIsSpecified_NothingIsClassified(TestHost testHost) 2508public Task InXmlDocCref_WhenTypeAndConstructorSpecified_OnlyTypeIsClassified(TestHost testHost) 2527public Task TestMemberBindingThatLooksGeneric(TestHost testHost) 2560public Task TestAliasQualifiedClass(TestHost testHost) 2589public Task TestUnmanagedConstraint_InsideMethod(TestHost testHost) 2599public Task TestUnmanagedConstraint_Type_Keyword(TestHost testHost) 2607public Task TestUnmanagedConstraint_Type_ExistingInterface(TestHost testHost) 2617public Task TestUnmanagedConstraint_Type_ExistingInterfaceButOutOfScope(TestHost testHost) 2631public Task TestUnmanagedConstraint_Method_Keyword(TestHost testHost) 2643public Task TestUnmanagedConstraint_Method_ExistingInterface(TestHost testHost) 2656public Task TestUnmanagedConstraint_Method_ExistingInterfaceButOutOfScope(TestHost testHost) 2673public Task TestUnmanagedConstraint_Delegate_Keyword(TestHost testHost) 2681public Task TestUnmanagedConstraint_Delegate_ExistingInterface(TestHost testHost) 2691public Task TestUnmanagedConstraint_Delegate_ExistingInterfaceButOutOfScope(TestHost testHost) 2705public Task TestUnmanagedConstraint_LocalFunction_Keyword(TestHost testHost) 2720public Task TestUnmanagedConstraint_LocalFunction_ExistingInterface(TestHost testHost) 2736public Task TestUnmanagedConstraint_LocalFunction_ExistingInterfaceButOutOfScope(TestHost testHost) 2757public async Task TestDirectiveStringLiteral(TestHost testHost) 2764public Task TestFormatSpecifierInInterpolation(TestHost testHost) 2773public Task TestOverloadedOperator_BinaryExpression(TestHost testHost) 2804public Task TestOverloadedOperator_PrefixUnaryExpression(TestHost testHost) 2831public Task TestOverloadedOperator_PostfixUnaryExpression(TestHost testHost) 2864public Task TestOverloadedOperator_ConditionalExpression(TestHost testHost) 2892public Task TestCatchDeclarationVariable(TestHost testHost) 2906public Task TestNotNullConstraint_InsideMethod(TestHost testHost) 2916public Task TestNotNullConstraint_Type_Keyword(TestHost testHost) 2924public Task TestNotNullConstraint_Type_ExistingInterface(TestHost testHost) 2934public Task TestNotNullConstraint_Type_ExistingInterfaceButOutOfScope(TestHost testHost) 2948public Task TestNotNullConstraint_Method_Keyword(TestHost testHost) 2960public Task TestNotNullConstraint_Method_ExistingInterface(TestHost testHost) 2973public Task TestNotNullConstraint_Method_ExistingInterfaceButOutOfScope(TestHost testHost) 2990public Task TestNotNullConstraint_Delegate_Keyword(TestHost testHost) 2998public Task TestNotNullConstraint_Delegate_ExistingInterface(TestHost testHost) 3008public Task TestNotNullConstraint_Delegate_ExistingInterfaceButOutOfScope(TestHost testHost) 3022public Task TestNotNullConstraint_LocalFunction_Keyword(TestHost testHost) 3037public Task TestNotNullConstraint_LocalFunction_ExistingInterface(TestHost testHost) 3053public Task TestNotNullConstraint_LocalFunction_ExistingInterfaceButOutOfScope(TestHost testHost) 3073public Task NonDiscardVariableDeclaration(TestHost testHost) 3089public Task NonDiscardVariableDeclarationMultipleDeclarators(TestHost testHost) 3102public Task DiscardAssignment(TestHost testHost) 3118public Task DiscardInOutDeclaration(TestHost testHost) 3135public Task DiscardInOutAssignment(TestHost testHost) 3151public Task DiscardInDeconstructionAssignment(TestHost testHost) 3165public Task DiscardInDeconstructionDeclaration(TestHost testHost) 3179public Task DiscardInPatternMatch(TestHost testHost) 3194public Task DiscardInSwitch(TestHost testHost) 3215public Task DiscardInSwitchPatternMatch(TestHost testHost) 3233public Task UnusedUnderscoreParameterInLambda(TestHost testHost) 3248public Task UsedUnderscoreParameterInLambda(TestHost testHost) 3264public Task DiscardsInLambda(TestHost testHost) 3281public Task DiscardsInLambdaWithInferredType(TestHost testHost) 3298public Task NativeInteger(TestHost testHost) 3305public Task NotNativeInteger(TestHost testHost) 3314public Task NotNativeUnsignedInteger(TestHost testHost) 3323public Task StaticBoldingMethodName(TestHost testHost) 3341public Task StaticBoldingMethodNameNestedInNameof(TestHost testHost) 3359public Task BoldingMethodNameStaticAndNot(TestHost testHost) 3387public Task BasicRecordClassification(TestHost testHost) 3402public Task ParameterizedRecordClassification(TestHost testHost) 3416public Task BasicRecordClassClassification(TestHost testHost) 3430public Task BasicRecordStructClassification(TestHost testHost) 3442public Task BasicFileScopedNamespaceClassification(TestHost testHost) 3453public Task NullCheckedParameterClassification(TestHost testHost) 3465public Task MethodGroupClassifications(TestHost testHost) 3490public Task LocalFunctionUse(TestHost testHost)
Classification\SemanticClassifierTests_Json.cs (16)
18public Task TestJson1(TestHost testHost) 63public Task TestJson_RawString(TestHost testHost) 88public Task TestMultiLineJson1(TestHost testHost) 147public Task TestJson_NoComment_NotLikelyJson(TestHost testHost) 161public Task TestJson_NoComment_LikelyJson(TestHost testHost) 186public Task TestJsonOnApiWithStringSyntaxAttribute_Field(TestHost testHost) 212public Task TestJsonOnApiWithStringSyntaxAttribute_Field_FromLocal(TestHost testHost) 240public Task TestJsonOnApiWithStringSyntaxAttribute_OtherLanguage_Field(TestHost testHost) 259public Task TestJsonOnApiWithStringSyntaxAttribute_Property(TestHost testHost) 285public Task TestJsonOnApiWithStringSyntaxAttribute_Argument(TestHost testHost) 313public Task TestJsonOnApiWithStringSyntaxAttribute_Argument_FromLocal(TestHost testHost) 343public Task TestJsonOnApiWithStringSyntaxAttribute_PropertyInitializer(TestHost testHost) 374public Task TestJsonOnApiWithStringSyntaxAttribute_PropertyInitializer_FromLocal(TestHost testHost) 406public Task TestJsonOnApiWithStringSyntaxAttribute_WithExpression(TestHost testHost) 438public Task TestJsonOnApiWithStringSyntaxAttribute_WithExpression_FromLocal(TestHost testHost) 471public Task TestJsonOnApiWithStringSyntaxAttribute_WithExpression_FromLocal2(TestHost testHost)
Classification\SemanticClassifierTests_Regex.cs (45)
17public Task TestRegex1(TestHost testHost) 98public Task TestRegex2(TestHost testHost) 179public Task TestRegex3(TestHost testHost) 260public Task TestRegex4(TestHost testHost) 283public Task TestRegex4_utf8_1(TestHost testHost) 306public Task TestRegex4_utf8_2(TestHost testHost) 329public Task TestRegex5(TestHost testHost) 352public Task TestRegex6(TestHost testHost) 376public Task TestRegex7(TestHost testHost) 400public Task TestRegex8(TestHost testHost) 424public Task TestRegex9(TestHost testHost) 451public Task TestRegex10(TestHost testHost) 476public Task TestRegex10_utf8(TestHost testHost) 501public Task TestRegex11(TestHost testHost) 527public Task TestRegexSingleLineRawStringLiteral(TestHost testHost) 550public Task TestRegexSingleLineRawStringLiteral_utf8(TestHost testHost) 573public Task TestRegexMultiLineRawStringLiteral(TestHost testHost) 598public Task TestRegexMultiLineRawStringLiteral_utf8(TestHost testHost) 624public Task TestRegexWithSpecialCSharpCharLiterals(TestHost testHost) 647public Task TestRegexWithSpecialCSharpCharLiterals_utf8(TestHost testHost) 667public Task TestRegexOnApiWithStringSyntaxAttribute_Field(TestHost testHost) 692public Task TestRegexOnApiWithStringSyntaxAttribute_Field2(TestHost testHost) 711public Task TestRegexOnApiWithStringSyntaxAttribute_Property(TestHost testHost) 736public Task TestRegexOnApiWithStringSyntaxAttribute_Property2(TestHost testHost) 755public Task TestRegexOnApiWithStringSyntaxAttribute_Argument(TestHost testHost) 781public Task TestRegexOnApiWithStringSyntaxAttribute_ParamsArgument(TestHost testHost) 808public Task TestRegexOnApiWithStringSyntaxAttribute_ParamsArgument2(TestHost testHost) 838public Task TestRegexOnApiWithStringSyntaxAttribute_ArrayArgument(TestHost testHost) 864public Task TestRegexOnApiWithStringSyntaxAttribute_ImplicitArrayArgument(TestHost testHost) 890public Task TestRegexOnApiWithStringSyntaxAttribute_CollectionArgument(TestHost testHost) 918public Task TestRegexOnApiWithStringSyntaxAttribute_ImplicitCollectionArgument(TestHost testHost) 945public Task TestRegexOnApiWithStringSyntaxAttribute_Argument_Options(TestHost testHost) 974public Task TestRegexOnApiWithStringSyntaxAttribute_Attribute(TestHost testHost) 1002public Task TestRegexOnApiWithStringSyntaxAttribute_AttributeField(TestHost testHost) 1034public Task TestRegexOnApiWithStringSyntaxAttribute_AttributeProperty(TestHost testHost) 1065public Task TestRegexOnApiWithStringSyntaxAttribute_ParamsAttribute(TestHost testHost) 1092public Task TestRegexOnApiWithStringSyntaxAttribute_ArrayAttribute(TestHost testHost) 1119public Task TestRegexOnApiWithStringSyntaxAttribute_ImplicitArrayAttribute(TestHost testHost) 1146public Task TestIncompleteRegexLeadingToStringInsideSkippedTokensInsideADirective(TestHost testHost) 1175public Task TestRegexAmbiguity1(TestHost testHost) 1194public Task TestRegexAmbiguity2(TestHost testHost) 1212public Task TestRegexNotOnBinaryExpression(TestHost testHost) 1235TestHost testHost, 1271TestHost testHost, 1296public Task TestRegexOnApiWithStringSyntaxAttribute_ParamsReadOnlyCollectionArgument(TestHost testHost)
Classification\SemanticClassifierTests_StringEscapes.cs (38)
16public Task TestStringEscape1(TestHost testHost) 24public Task TestStringEscape1_utf8(TestHost testHost) 32public Task TestStringEscape2(TestHost testHost) 38public Task TestStringEscape2_utf8(TestHost testHost) 44public Task TestStringEscape3(TestHost testHost) 52public Task TestStringEscape3_utf8(TestHost testHost) 60public Task TestStringEscape4(TestHost testHost) 68public Task TestStringEscape4_utf8(TestHost testHost) 76public Task TestStringEscape5(TestHost testHost) 86public Task TestStringEscape5_utf8(TestHost testHost) 96public Task TestStringEscape6(TestHost testHost) 104public Task TestStringEscape6_utf8(TestHost testHost) 112public Task TestStringEscape7(TestHost testHost) 120public Task TestStringEscape7_utf8(TestHost testHost) 128public Task TestStringEscape8(TestHost testHost) 136public Task TestStringEscape8_utf8(TestHost testHost) 144public Task TestStringEscape9(TestHost testHost) 152public Task TestStringEscape9_utf8(TestHost testHost) 160public Task TestNotStringEscapeInRawLiteral1(TestHost testHost) 166public Task TestNotStringEscapeInRawLiteral1_utf8(TestHost testHost) 172public Task TestNotStringEscapeInRawLiteral2(TestHost testHost) 182public Task TestNotStringEscapeInRawLiteral2_utf8(TestHost testHost) 192public Task TestNotStringEscapeInRawLiteral3(TestHost testHost) 202public Task TestNotStringEscapeInRawLiteral3_utf8(TestHost testHost) 212public Task TestNotStringEscapeInRawLiteral4(TestHost testHost) 218public Task TestNotStringEscapeInRawLiteral4_utf8(TestHost testHost) 224public Task TestNotStringEscapeInRawLiteral5(TestHost testHost) 234public Task TestNotStringEscapeInRawLiteral5_utf8(TestHost testHost) 244public Task TestNotStringEscapeInRawLiteral6(TestHost testHost) 254public Task TestNotStringEscapeInRawLiteral6_utf8(TestHost testHost) 265public Task TestCharEscape1(TestHost testHost) 273public Task TestCharEscape2(TestHost testHost) 281public Task TestCharEscape3(TestHost testHost) 289public Task TestCharEscape5(TestHost testHost) 296public Task TestCharEscape4(TestHost testHost) 303public Task TestEscapeFourBytesCharacter(TestHost testHost) 316public Task TestEscapeCharacter(TestHost testHost) 359public Task TestEscapeCharacter2(TestHost testHost)
Classification\SemanticClassifierTests_TestMarkup.cs (19)
35TestHost testHost, 58TestHost testHost, 79TestHost testHost, 110public async Task TestEmbeddedCSharpMarkup1WithMultipleSpansAsync(TestHost testHost) 158public Task TestEmbeddedCSharpMarkup1(TestHost testHost) 172public Task TestEmbeddedCSharpCaret1(TestHost testHost) 189public Task TestEmbeddedCSharpCaret2(TestHost testHost) 205public Task TestEmbeddedCSharpSpan1(TestHost testHost) 229public Task TestEmbeddedCSharpSpan2(TestHost testHost) 253public Task TestEmbeddedCSharpSpan3(TestHost testHost) 276public Task TestEmbeddedCSharpSpan4(TestHost testHost) 299public Task TestEmbeddedCSharpSpan5(TestHost testHost) 322public Task TestEmbeddedCSharpSpan6(TestHost testHost) 345public Task TestEmbeddedCSharpSpan7(TestHost testHost) 372public Task TestEmbeddedCSharpSpan8(TestHost testHost) 400public Task TestEmbeddedCSharpString1(TestHost testHost) 429public Task TestEmbeddedCSharpString2(TestHost testHost) 460public Task TestOnlyMarkup1(TestHost testHost) 469public Task TestOnlyMarkup2(TestHost testHost)
Classification\SyntacticClassifierTests.cs (233)
22protected override async Task<ImmutableArray<ClassifiedSpan>> GetClassificationSpansAsync(string code, ImmutableArray<TextSpan> spans, ParseOptions? options, TestHost testHost) 31public Task VarAtTypeMemberLevel(TestHost testHost) 47public Task TestNamespace(TestHost testHost) 61public Task TestFileScopedNamespace(TestHost testHost) 73public Task VarAsLocalVariableType(TestHost testHost) 82public Task VarOptimisticallyColored(TestHost testHost) 88public Task VarNotColoredInClass(TestHost testHost) 94public Task VarInsideLocalAndExpressions(TestHost testHost) 110public Task VarAsMethodParameter(TestHost testHost) 135public Task YieldYield(TestHost testHost) 184public Task YieldYieldAsSpans(TestHost testHost) 213public Task YieldReturn(TestHost testHost) 221public Task YieldFixed(TestHost testHost) 253public Task TestAwait(TestHost testHost) 292public Task PartialClass(TestHost testHost) 301public Task PartialMethod(TestHost testHost) 323public Task PartialAsLocalVariableType(TestHost testHost) 334public Task PartialClassStructInterface(TestHost testHost) 372public async Task ContextualKeywordsOnlyValidInMethods(TestHost testHost) 384public Task VerbatimStringLiterals1(TestHost testHost) 394public Task VerbatimStringLiteralsUtf8_01(TestHost testHost) 403public Task VerbatimStringLiteralsUtf8_02(TestHost testHost) 415public Task VerbatimStringLiterals2(TestHost testHost) 428public Task VerbatimStringLiterals3(TestHost testHost) 442public Task VerbatimStringLiterals4(TestHost testHost) 458public Task VerbatimStringLiterals5(TestHost testHost) 477public Task VerbatimStringLiteralsUtf8_03(TestHost testHost) 497public Task VerbatimStringLiteralsUtf8_04(TestHost testHost) 518public async Task VerbatimStringLiterals6(bool script, TestHost testHost) 539public async Task VerbatimStringLiteralsUtf8_05(bool script, TestHost testHost) 561public async Task VerbatimStringLiteralsUtf8_06(bool script, TestHost testHost) 583public Task StringLiteral1(TestHost testHost) 593public Task StringLiteralUtf8_01(TestHost testHost) 604public Task StringLiteralUtf8_02(TestHost testHost) 615public Task StringLiteral2(TestHost testHost) 625public Task StringLiteralUtf8_03(TestHost testHost) 636public Task StringLiteralUtf8_04(TestHost testHost) 647public Task CharacterLiteral1(TestHost testHost) 653public Task LinqFrom1(TestHost testHost) 662public Task LinqFrom2(TestHost testHost) 675public Task LinqFrom3(TestHost testHost) 683public Task LinqFrom4(TestHost testHost) 691public Task LinqWhere1(TestHost testHost) 704public Task LinqWhere2(TestHost testHost) 722public async Task VarContextualKeywordAtNamespaceLevel(bool script, TestHost testHost) 741public async Task LinqKeywordsAtNamespaceLevel(bool script, TestHost testHost) 800public Task ContextualKeywordsAsFieldName(TestHost testHost) 836public Task LinqKeywordsInFieldInitializer(TestHost testHost) 893public Task LinqKeywordsAsTypeName(TestHost testHost) 1008public Task LinqKeywordsAsMethodParameters(TestHost testHost) 1072public Task LinqKeywordsInLocalVariableDeclarations(TestHost testHost) 1227public Task LinqKeywordsAsFieldNames(TestHost testHost) 1271public Task LinqKeywordsAtFieldLevelInvalid(TestHost testHost) 1324public Task CommentSingle(TestHost testHost) 1330public Task CommentAsTrailingTrivia1(TestHost testHost) 1339public Task CommentAsLeadingTrivia1(TestHost testHost) 1361public async Task ShebangAsFirstCommentInScript(TestHost testHost) 1385public async Task ShebangAsFirstCommentInNonScript(TestHost testHost) 1409public async Task ShebangNotAsFirstCommentInScript(TestHost testHost) 1433public Task IgnoredDirective_01(TestHost testHost) 1451public Task IgnoredDirective_02(TestHost testHost) 1469public Task IgnoredDirective_03(TestHost testHost) 1486public Task IgnoredDirective_04(TestHost testHost) 1504public Task CommentAsMethodBodyContent(TestHost testHost) 1527public Task CommentMix1(TestHost testHost) 1545public Task CommentMix2(TestHost testHost) 1558public Task XmlDocCommentOnClass(TestHost testHost) 1580public Task XmlDocCommentOnClassWithIndent(TestHost testHost) 1607public Task XmlDocComment_EntityReference(TestHost testHost) 1629public Task XmlDocComment_ExteriorTriviaInsideCloseTag(TestHost testHost) 1653[InlineData(TestHost.InProcess, "true", false)] 1654[InlineData(TestHost.OutOfProcess, "true", false)] 1655[InlineData(TestHost.InProcess, "return", true)] 1656[InlineData(TestHost.OutOfProcess, "return", true)] 1657[InlineData(TestHost.InProcess, "with", false)] 1658[InlineData(TestHost.OutOfProcess, "with", false)] 1659public Task XmlDocComment_LangWordAttribute_Keywords(TestHost testHost, string langword, bool isControlKeyword) 1700public Task XmlDocComment_LangWordAttribute_NonKeyword(TestHost testHost) 1741public Task XmlDocComment_ExteriorTriviaInsideCRef(TestHost testHost) 1774public Task XmlDocCommentOnClassWithExteriorTrivia(TestHost testHost) 1801public Task XmlDocComment_ExteriorTriviaNoText(TestHost testHost) 1825public Task XmlDocComment_EmptyElement(TestHost testHost) 1843public Task XmlDocComment_Attribute(TestHost testHost) 1874public Task XmlDocComment_AttributeInEmptyElement(TestHost testHost) 1901public Task XmlDocComment_ExtraSpaces(TestHost testHost) 1928public Task XmlDocComment_XmlComment(TestHost testHost) 1945public Task XmlDocComment_XmlCommentWithExteriorTrivia(TestHost testHost) 1965public Task XmlDocComment_XmlCommentInElement(TestHost testHost) 1989public Task XmlDocComment_MalformedXmlDocComment(TestHost testHost) 2021public Task MultilineXmlDocComment_ExteriorTrivia(TestHost testHost) 2046public Task XmlDocComment_CDataWithExteriorTrivia(TestHost testHost) 2066public Task XmlDocComment_ProcessingDirective(TestHost testHost) 2108public Task KeywordTypeParameters(TestHost testHost) 2121public Task TypeParametersWithAttribute(TestHost testHost) 2136public Task ClassTypeDeclaration1(TestHost testHost) 2145public Task ClassTypeDeclaration2(TestHost testHost) 2154public Task StructTypeDeclaration1(TestHost testHost) 2163public Task InterfaceDeclaration1(TestHost testHost) 2172public Task EnumDeclaration1(TestHost testHost) 2182public Task ClassInEnum(TestHost testHost) 2198public Task DelegateDeclaration1(TestHost testHost) 2209public Task GenericTypeArgument(TestHost testHost) 2221public Task GenericParameter(TestHost testHost) 2233public Task GenericParameters(TestHost testHost) 2247public Task GenericParameter_Interface(TestHost testHost) 2259public Task GenericParameter_Struct(TestHost testHost) 2271public Task GenericParameter_Delegate(TestHost testHost) 2284public Task GenericParameter_Method(TestHost testHost) 2312public Task TernaryExpression(TestHost testHost) 2322public Task BaseClass(TestHost testHost) 2338public Task TestLabel(TestHost testHost) 2345public Task Attribute(TestHost testHost) 2356public Task TestAngleBracketsOnGenericConstraints_Bug932262(TestHost testHost) 2380public Task TestYieldPositive(TestHost testHost) 2390public Task TestYieldNegative(TestHost testHost) 2399public Task TestFromPositive(TestHost testHost) 2409public Task TestFromNegative(TestHost testHost) 2418public Task AttributeTargetSpecifiersModule(TestHost testHost) 2429public Task AttributeTargetSpecifiersAssembly(TestHost testHost) 2440public Task AttributeTargetSpecifiersOnDelegate(TestHost testHost) 2466public Task AttributeTargetSpecifiersOnMethod(TestHost testHost) 2494public Task AttributeTargetSpecifiersOnCtor(TestHost testHost) 2522public Task AttributeTargetSpecifiersOnDtor(TestHost testHost) 2551public Task AttributeTargetSpecifiersOnOperator(TestHost testHost) 2586public Task AttributeTargetSpecifiersOnEventDeclaration(TestHost testHost) 2644public Task AttributeTargetSpecifiersOnPropertyAccessors(TestHost testHost) 2695public Task AttributeTargetSpecifiersOnIndexers(TestHost testHost) 2721public Task AttributeTargetSpecifiersOnIndexerAccessors(TestHost testHost) 2776public Task AttributeTargetSpecifiersOnField(TestHost testHost) 2797public Task TestAllKeywords(TestHost testHost) 3513public Task TestAllOperators(TestHost testHost) 3845public Task TestPartialMethodWithNamePartial(TestHost testHost) 3908public Task ValueInSetterAndAnonymousTypePropertyName(TestHost testHost) 3947public Task TestValueInLabel(TestHost testHost) 3980public Task TestGenericVar(TestHost testHost) 4030public Task TestInaccessibleVar(TestHost testHost) 4085public Task TestEscapedVar(TestHost testHost) 4121public Task TestVar(TestHost testHost) 4197public Task TestVar2(TestHost testHost) 4236public Task InterpolatedStrings1(TestHost testHost) 4267public Task InterpolatedStrings2(TestHost testHost) 4309public Task InterpolatedStrings3(TestHost testHost) 4351public Task ExceptionFilter1(TestHost testHost) 4375public Task ExceptionFilter2(TestHost testHost) 4404public Task OutVar(TestHost testHost) 4418public Task ReferenceDirective(TestHost testHost) 4431public Task LoadDirective(TestHost testHost) 4444public Task IncompleteAwaitInNonAsyncContext(TestHost testHost) 4465public Task CompleteAwaitInNonAsyncContext(TestHost testHost) 4487public Task TupleDeclaration(TestHost testHost) 4499public Task TupleDeclarationWithNames(TestHost testHost) 4513public Task TupleLiteral(TestHost testHost) 4527public Task TupleLiteralWithNames(TestHost testHost) 4545public Task TestConflictMarkers1(TestHost testHost) 4579public Task TestConflictMarkers2(TestHost testHost) 4619public Task TestUnmanagedConstraint_InsideMethod(TestHost testHost) 4636public Task TestUnmanagedConstraint_Type_Keyword(TestHost testHost) 4653public Task TestUnmanagedConstraint_Type_ExistingInterface(TestHost testHost) 4677public Task TestUnmanagedConstraint_Type_ExistingInterfaceButOutOfScope(TestHost testHost) 4708public Task TestUnmanagedConstraint_Method_Keyword(TestHost testHost) 4736public Task TestUnmanagedConstraint_Method_ExistingInterface(TestHost testHost) 4769public Task TestUnmanagedConstraint_Method_ExistingInterfaceButOutOfScope(TestHost testHost) 4809public Task TestUnmanagedConstraint_Delegate_Keyword(TestHost testHost) 4828public Task TestUnmanagedConstraint_Delegate_ExistingInterface(TestHost testHost) 4854public Task TestUnmanagedConstraint_Delegate_ExistingInterfaceButOutOfScope(TestHost testHost) 4887public Task TestUnmanagedConstraint_LocalFunction_Keyword(TestHost testHost) 4924public Task TestUnmanagedConstraint_LocalFunction_ExistingInterface(TestHost testHost) 4966public Task TestUnmanagedConstraint_LocalFunction_ExistingInterfaceButOutOfScope(TestHost testHost) 5015public Task TestDeclarationIsPattern(TestHost testHost) 5039public Task TestDeclarationSwitchPattern(TestHost testHost) 5068public Task TestDeclarationExpression(TestHost testHost) 5090public Task TestListPattern(TestHost testHost) 5135public Task TestListPattern2(TestHost testHost) 5163public Task TestVarPattern(TestHost testHost) 5179public Task TestTupleTypeSyntax(TestHost testHost) 5201public Task TestOutParameter(TestHost testHost) 5228public Task TestOutParameter2(TestHost testHost) 5258public Task TestUsingDirective(TestHost testHost) 5270public Task TestUsingAliasDirectiveForIdentifier(TestHost testHost) 5282public Task TestUsingAliasDirectiveForClass(TestHost testHost) 5294public Task TestUsingStaticDirective(TestHost testHost) 5306public Task ForEachVariableStatement(TestHost testHost) 5336public Task CatchDeclarationStatement(TestHost testHost) 5355public Task TestNotNullConstraint_InsideMethod(TestHost testHost) 5372public Task TestNotNullConstraint_Type_Keyword(TestHost testHost) 5389public Task TestNotNullConstraint_Type_ExistingInterface(TestHost testHost) 5413public Task TestNotNullConstraint_Type_ExistingInterfaceButOutOfScope(TestHost testHost) 5444public Task TestNotNullConstraint_Method_Keyword(TestHost testHost) 5472public Task TestNotNullConstraint_Method_ExistingInterface(TestHost testHost) 5505public Task TestNotNullConstraint_Method_ExistingInterfaceButOutOfScope(TestHost testHost) 5545public Task TestNotNullConstraint_Delegate_Keyword(TestHost testHost) 5564public Task TestNotNullConstraint_Delegate_ExistingInterface(TestHost testHost) 5590public Task TestNotNullConstraint_Delegate_ExistingInterfaceButOutOfScope(TestHost testHost) 5623public Task TestNotNullConstraint_LocalFunction_Keyword(TestHost testHost) 5660public Task TestNotNullConstraint_LocalFunction_ExistingInterface(TestHost testHost) 5702public Task TestNotNullConstraint_LocalFunction_ExistingInterfaceButOutOfScope(TestHost testHost) 5752public Task FunctionPointer(TestHost testHost) 5785using var workspace = CreateWorkspace(source, options: null, TestHost.InProcess); 5815using var workspace = CreateWorkspace(source, options: null, TestHost.InProcess); 5840public Task TestStaticLocalFunction(TestHost testHost) 5876public Task TestConstantLocalVariable(TestHost testHost) 5910public Task TestRawStringLiteral(TestHost testHost) 5946public Task TestRawStringLiteralUtf8_01(TestHost testHost) 5983public Task TestRawStringLiteralUtf8_02(TestHost testHost) 6020public Task TestRawStringLiteralMultiline(TestHost testHost) 6060public Task TestRawStringLiteralMultilineUtf8_01(TestHost testHost) 6101public Task TestRawStringLiteralMultilineUtf8_02(TestHost testHost) 6142public Task TestRawStringLiteralInterpolation1(TestHost testHost) 6184public Task TestRawStringLiteralInterpolation2(TestHost testHost) 6226public Task TestRawStringLiteralInterpolation3(TestHost testHost) 6270public Task CheckedUserDefinedOperators_01(TestHost testHost) 6292public Task CheckedUserDefinedOperators_02(TestHost testHost) 6317public Task CheckedUserDefinedOperators_03(TestHost testHost) 6339public Task CheckedUserDefinedOperators_04(TestHost testHost) 6363public Task CheckedUserDefinedOperators_05(TestHost testHost) 6390public Task CheckedUserDefinedOperators_06(TestHost testHost) 6414public Task UnsignedRightShift_01(TestHost testHost) 6438public Task UnsignedRightShift_02(TestHost testHost) 6465public Task InstanceIncrementOperator_01(TestHost testHost, [CombinatorialValues("++", "--")] string op) 6483public Task InstanceIncrementOperator_02(TestHost testHost, [CombinatorialValues("++", "--")] string op) 6504public Task InstanceCompoundAssignmentOperator_01(TestHost testHost, [CombinatorialValues("+=", "-=", "*=", "/=", "%=", "&=", "|=", "^=", "<<=", ">>=", ">>>=")] string op) 6544public Task InstanceCompoundAssignmentOperator_02(TestHost testHost, [CombinatorialValues("+=", "-=", "*=", "/=", "%=", "&=", "|=", "^=", "<<=", ">>=", ">>>=")] string op) 6567public Task TestExclamationExclamation(TestHost testHost) 6596public Task LocalFunctionDeclaration(TestHost testHost) 6652public Task ScopedParameter(TestHost testHost) 6669public Task ScopedLocalDeclaration(TestHost testHost) 6678public Task ScopedOutDeclaration(TestHost testHost) 6693public Task LambdaDefaultParameter_01(TestHost testHost) 6752public Task LambdaDefaultParameter_02(TestHost testHost) 6791public Task LambdaParamsArray(TestHost testHost) 6811public Task LambdaParamsArray_Multiple(TestHost testHost) 6846public Task TestAllowsRefStructConstraint_01(TestHost testHost) 6865public Task TestAllowsRefStructConstraint_02(TestHost testHost)
Classification\SyntacticClassifierTests_Preprocessor.cs (90)
18public Task PP_IfTrue(TestHost testHost) 31public Task PP_IfTrueWithComment(TestHost testHost) 45public Task PP_IfFalse(TestHost testHost) 58public Task PP_IfGOO(TestHost testHost) 71public Task PP_IfNotTrue(TestHost testHost) 85public Task PP_IfNotFalse(TestHost testHost) 99public Task PP_IfNotGOO(TestHost testHost) 113public Task PP_IfTrueWithParens(TestHost testHost) 128public Task PP_IfFalseWithParens(TestHost testHost) 143public Task PP_IfGOOWithParens(TestHost testHost) 158public Task PP_IfOrExpression(TestHost testHost) 173public Task PP_IfAndExpression(TestHost testHost) 188public Task PP_IfOrAndExpression(TestHost testHost) 205public Task PP_IfOrExpressionWithParens(TestHost testHost) 222public Task PP_IfAndExpressionWithParens(TestHost testHost) 239public Task PP_IfOrAndExpressionWithParens(TestHost testHost) 258public Task PP_If1(TestHost testHost) 266public Task PP_If2(TestHost testHost) 274public Task PP_If3(TestHost testHost) 287public Task PP_If4(TestHost testHost) 299public Task PP_If5(TestHost testHost) 318public Task PP_If6(TestHost testHost) 332public Task PP_If7(TestHost testHost) 350public async Task PP_If8(bool script, TestHost testHost) 384public async Task PP_If9(bool script, TestHost testHost) 420public Task PP_Region1(TestHost testHost) 428public Task PP_Region2(TestHost testHost) 436public Task PP_EndRegion1(TestHost testHost) 443public Task PP_EndRegion2(TestHost testHost) 450public Task PP_EndRegion3(TestHost testHost) 458public Task PP_EndRegion4(TestHost testHost) 466public Task PP_RegionEndRegion1(TestHost testHost) 479public Task PP_CommentAfterRegion1(TestHost testHost) 493public Task PP_CommentAfterRegion2(TestHost testHost) 507public Task PP_CommentAfterEndRegion1(TestHost testHost) 521public Task PP_CommentAfterEndRegion2(TestHost testHost) 535public Task PP_DeclarationDirectives(TestHost testHost) 550public Task PP_IfElseEndIfDirectives(TestHost testHost) 570public Task PP_DefineDirective(TestHost testHost) 578public Task PP_DefineDirectiveWithCommentAndNoName(TestHost testHost) 586public Task PP_DefineDirectiveWithComment(TestHost testHost) 595public Task PP_UndefDirectives(TestHost testHost) 603public Task PP_UndefDirectiveWithCommentAndNoName(TestHost testHost) 611public Task PP_UndefDirectiveWithComment(TestHost testHost) 620public Task PP_ErrorDirective(TestHost testHost) 628public Task PP_ErrorDirectiveWithComment(TestHost testHost) 636public Task PP_WarningDirective(TestHost testHost) 644public Task PP_WarningDirectiveWithComment(TestHost testHost) 652public Task PP_LineHidden(TestHost testHost) 660public Task PP_LineHiddenWithComment(TestHost testHost) 669public Task PP_LineDefault(TestHost testHost) 677public Task PP_LineDefaultWithComment(TestHost testHost) 686public Task PP_LineNumber(TestHost testHost) 694public Task PP_LineNumberWithComment(TestHost testHost) 703public Task PP_LineNumberWithFilename(TestHost testHost) 716public Task PP_LineNumberWithFilenameAndComment(TestHost testHost) 728public Task PP_LineSpanWithCharacterOffset(TestHost testHost) 752public Task PP_LineSpanWithComment(TestHost testHost) 774public Task PP_NullableEnable(TestHost testHost) 782public Task PP_NullableEnableWithComment(TestHost testHost) 791public Task PP_NullableEnableWarnings(TestHost testHost) 800public Task PP_NullableEnableWarningsWithComment(TestHost testHost) 810public Task PP_NullableEnableAnnotations(TestHost testHost) 819public Task PP_NullableEnableAnnotationsWithComment(TestHost testHost) 829public Task PP_NullableDisable(TestHost testHost) 837public Task PP_NullableDisableWithComment(TestHost testHost) 846public Task PP_PragmaChecksum1(TestHost testHost) 856public Task PP_PragmaChecksum2(TestHost testHost) 876public Task PP_PragmaChecksum3(TestHost testHost) 895public Task PP_PragmaWarningDisableOne(TestHost testHost) 905public Task PP_PragmaWarningDisableOneWithComment(TestHost testHost) 917public Task PP_PragmaWarningDisableAllWithComment(TestHost testHost) 927public Task PP_PragmaWarningRestoreOne(TestHost testHost) 937public Task PP_PragmaWarningRestoreOneWithComment(TestHost testHost) 949public Task PP_PragmaWarningRestoreAllWithComment(TestHost testHost) 959public Task PP_PragmaWarningDisableTwo(TestHost testHost) 971public Task PP_PragmaWarningRestoreTwo(TestHost testHost) 983public Task PP_PragmaWarningDisableThree(TestHost testHost) 997public Task PP_PragmaWarningRestoreThree(TestHost testHost) 1011public Task PP_AfterNonWhiteSpaceOnLine(TestHost testHost) 1034public Task DiscardInOutDeclaration(TestHost testHost) 1042public Task DiscardInCasePattern(TestHost testHost) 1050public Task DiscardInDeconstruction(TestHost testHost) 1059public Task DiscardInDeconstruction2(TestHost testHost) 1068public Task ShortDiscardInDeconstruction(TestHost testHost) 1078public Task ShortDiscardInOutDeclaration(TestHost testHost) 1086public Task ShortDiscardInAssignment(TestHost testHost) 1093public Task UnderscoreInLambda(TestHost testHost) 1101public Task DiscardInLambda(TestHost testHost) 1109public Task UnderscoreInAssignment(TestHost testHost)
Classification\TotalClassifierTests.cs (104)
34protected override async Task<ImmutableArray<ClassifiedSpan>> GetClassificationSpansAsync(string code, ImmutableArray<TextSpan> spans, ParseOptions? options, TestHost testHost) 43public Task VarAsUsingAliasForNamespace(TestHost testHost) 55public Task Bug17819(TestHost testHost) 82public Task VarAsUsingAliasForClass(TestHost testHost) 96public Task VarAsUsingAliasForDelegate(TestHost testHost) 109public Task VarAsUsingAliasForStruct(TestHost testHost) 122public Task VarAsUsingAliasForEnum(TestHost testHost) 135public Task VarAsUsingAliasForInterface(TestHost testHost) 148public Task VarAsConstructorName(TestHost testHost) 170public Task TestRecordClass(TestHost testHost) 193public Task TestRecordStruct(TestHost testHost) 218public Task UsingAliasGlobalNamespace(TestHost testHost) 233public Task PartialDynamicWhere(TestHost testHost) 282public Task VarInForeach(TestHost testHost) 296public Task ValueInSetterAndAnonymousTypePropertyName(TestHost testHost) 334public Task TestValueInEvent(TestHost testHost) 377public Task TestValueInProperty(TestHost testHost) 419public Task ValueFieldInSetterAccessedThroughThis(TestHost testHost) 446public Task NewOfInterface(TestHost testHost) 463public Task TestVarConstructor(TestHost testHost) 493public Task TestVarTypeParameter(TestHost testHost) 524public Task TestVarAttribute1(TestHost testHost) 550public Task TestVarAttribute2(TestHost testHost) 576public Task TestStandaloneTypeName(TestHost testHost) 613public Task TestNamespaceClassAmbiguities(TestHost testHost) 635public Task NameAttributeValue(TestHost testHost) 678public Task Cref1(TestHost testHost) 722public Task CrefNamespaceIsNotClass(TestHost testHost) 758public Task InterfacePropertyWithSameNameShouldBePreferredToType(TestHost testHost) 793public Task XmlDocCref(TestHost testHost) 850public Task TestGenericTypeWithNoArity(TestHost testHost) 875public Task TestGenericTypeWithWrongArity(TestHost testHost) 905public Task TestExtensionMethodDeclaration(TestHost testHost) 936public Task TestExtensionMethodUsage(TestHost testHost) 1008public Task TestConstLocals(TestHost testHost) 1029public Task TestUnmanagedConstraint_InsideMethod(TestHost testHost) 1045public Task TestUnmanagedConstraint_Type_Keyword(TestHost testHost) 1062public Task TestUnmanagedConstraint_Type_ExistingInterface(TestHost testHost) 1085public Task TestUnmanagedConstraint_Type_ExistingInterfaceButOutOfScope(TestHost testHost) 1115public Task TestUnmanagedConstraint_Method_Keyword(TestHost testHost) 1142public Task TestUnmanagedConstraint_Method_ExistingInterface(TestHost testHost) 1174public Task TestUnmanagedConstraint_Method_ExistingInterfaceButOutOfScope(TestHost testHost) 1213public Task TestUnmanagedConstraint_Delegate_Keyword(TestHost testHost) 1232public Task TestUnmanagedConstraint_Delegate_ExistingInterface(TestHost testHost) 1257public Task TestUnmanagedConstraint_Delegate_ExistingInterfaceButOutOfScope(TestHost testHost) 1289public Task TestUnmanagedConstraint_LocalFunction_Keyword(TestHost testHost) 1325public Task TestUnmanagedConstraint_LocalFunction_ExistingInterface(TestHost testHost) 1366public Task TestUnmanagedConstraint_LocalFunction_ExistingInterfaceButOutOfScope(TestHost testHost) 1415public Task TestOperatorOverloading(TestHost testHost) 1490public Task TestNotNullConstraint_InsideMethod(TestHost testHost) 1506public Task TestNotNullConstraint_Type_Keyword(TestHost testHost) 1523public Task TestNotNullConstraint_Type_ExistingInterface(TestHost testHost) 1546public Task TestNotNullConstraint_Type_ExistingInterfaceButOutOfScope(TestHost testHost) 1576public Task TestNotNullConstraint_Method_Keyword(TestHost testHost) 1603public Task TestNotNullConstraint_Method_ExistingInterface(TestHost testHost) 1635public Task TestNotNullConstraint_Method_ExistingInterfaceButOutOfScope(TestHost testHost) 1674public Task TestNotNullConstraint_Delegate_Keyword(TestHost testHost) 1693public Task TestNotNullConstraint_Delegate_ExistingInterface(TestHost testHost) 1718public Task TestNotNullConstraint_Delegate_ExistingInterfaceButOutOfScope(TestHost testHost) 1750public Task TestNotNullConstraint_LocalFunction_Keyword(TestHost testHost) 1786public Task TestNotNullConstraint_LocalFunction_ExistingInterface(TestHost testHost) 1827public Task TestNotNullConstraint_LocalFunction_ExistingInterfaceButOutOfScope(TestHost testHost) 1876public Task VarInPropertyPattern(TestHost testHost) 1944public Task NotPattern(TestHost testHost) 1983public Task OrPattern(TestHost testHost) 2022public Task TestPatternVariables(TestHost testHost) 2059public Task RelationalPattern(TestHost testHost) 2096public Task BasicFileScopedNamespaceClassification(TestHost testHost) 2113public Task TestStringEscape(TestHost testHost) 2136public Task TestStaticConstructorClass(TestHost testHost) 2159public Task TestStaticConstructorInterface(TestHost testHost) 2182public Task TestArgsInTopLevel(TestHost testHost) 2203public Task TestArgsInNormalProgram(TestHost testHost) 2230public Task TestAsyncInIncompleteMember(TestHost testHost) 2249public Task TestAsyncInIncompleteMemberWhenAsyncTypeIsDefined(TestHost testHost) 2272public Task TestAsyncInPotentialLocalFunctionDeclaration(TestHost testHost) 2292public Task TestAsyncInPotentialLocalFunctionDeclarationWhenAsyncTypeIsDefined(TestHost testHost) 2316public Task TestAsyncAsLocalMemberType_NoAsyncInScope(TestHost testHost) 2335public Task TestAsyncAsLocalMemberType_AsyncInScope(TestHost testHost) 2356public Task TestAsyncAsPropertyType_NoAsyncInScope(TestHost testHost) 2378public Task TestAsyncAsPropertyType_AsyncInScope(TestHost testHost) 2402public Task TestAsyncAsMethodReturnType_NoAsyncInScope(TestHost testHost) 2420public Task TestAsyncAsMethodReturnType_AsyncInScope(TestHost testHost) 2440public Task TestAsyncAsAccessingName(TestHost testHost) 2466public Task TestAsyncInIncompleteDelegateOrLambda(TestHost testHost) 2486public Task TestPartialInIncompleteMember1(TestHost testHost) 2497public Task TestPartialInIncompleteMember2(TestHost testHost) 2509public Task TestPartialInIncompleteMember1_PartialTypeIsDefined(TestHost testHost) 2524public Task TestPartialInIncompleteMember2_PartialTypeIsDefined(TestHost testHost) 2540public Task TestTopLevelPartial1(TestHost testHost) 2548public Task TestTopLevelPartial2(TestHost testHost) 2557public Task TestTopLevelPartial1_PartialTypeIsDefined(TestHost testHost) 2569public Task TestTopLevelPartial2_PartialTypeIsDefined(TestHost testHost) 2584public Task LocalFunctionDeclarationAndUse(TestHost testHost) 2642public Task TestScopedVar(TestHost testHost) 2678public Task Lambda_DefaultParameterValue(TestHost testHost) 2704public Task UsingAliasToType1(TestHost testHost) 2717public Task UsingAliasToType2(TestHost testHost) 2732public Task UsingAliasToType3(TestHost testHost) 2747public Task UsingAliasToType4(TestHost testHost) 2767public Task UsingAliasToType5(TestHost testHost) 2787public Task TestFunctionPointer1(TestHost testHost) 2812public Task TestFunctionPointer2(TestHost testHost) 3059public Task TestModernExtension1(TestHost testHost)
Classification\TotalClassifierTests_Dynamic.cs (62)
16public Task DynamicAsParamTypeAndDefault(TestHost testHost) 30public Task DynamicExplicitConversion(TestHost testHost) 44public Task DynamicMethodCall(TestHost testHost) 58public Task DynamicNullable(TestHost testHost) 66public Task DynamicAsUsingAliasForClass(TestHost testHost) 79public Task DynamicAsUsingAliasForDelegate(TestHost testHost) 92public Task DynamicAsUsingAliasForStruct(TestHost testHost) 105public Task DynamicAsUsingAliasForEnum(TestHost testHost) 118public Task DynamicAsUsingAliasForInterface(TestHost testHost) 131public Task DynamicAsExternAlias(TestHost testHost) 157public Task DynamicAsDelegateType(TestHost testHost) 167public Task DynamicAsDelegateReturnTypeAndParam(TestHost testHost) 179public Task DynamicAsDelegateLocalVariable(TestHost testHost) 213public Task DynamicAsGenericTypeName(TestHost testHost) 246public Task DynamicAsGenericField(TestHost testHost) 267public Task DynamicAsIndexerTypeAndParameter(TestHost testHost) 278public Task DynamicAsOperatorTypeAndParameter(TestHost testHost) 291public Task DynamicAsOperatorName(TestHost testHost) 304public Task DynamicAsPropertyTypeAndName(TestHost testHost) 317public Task DynamicAsEventName(TestHost testHost) 325public Task DynamicAsLinqLocalVariable(TestHost testHost) 337public Task DynamicAsAnonymousTypePropertyName(TestHost testHost) 361public Task DynamicAsArgumentToLambdaExpression(TestHost testHost) 381public Task DynamicAsAnonymousMethodLocalVariable(TestHost testHost) 412public Task DynamicAsMethodName(TestHost testHost) 428public Task DynamicAsStaticMethodTypeAndParams(TestHost testHost) 451public Task DynamicArraysInMethodSignature(TestHost testHost) 479public Task DynamicInPartialMethods(TestHost testHost) 508public Task DynamicRefAndOutParameters(TestHost testHost) 531public Task DynamicInExtensionMethod(TestHost testHost) 553public Task DynamicAsBaseClass(TestHost testHost) 569public Task DynamicAsGenericConstraint(TestHost testHost) 590public Task DynamicSizeOf(TestHost testHost) 614public Task DynamicTypeOf(TestHost testHost) 624public async Task DynamicAsArrayName(bool script, TestHost testHost) 652public Task DynamicInForeach(TestHost testHost) 663public Task DynamicInUsing(TestHost testHost) 672public Task DynamicAsLocalVariableName(TestHost testHost) 681public Task DynamicAsNamespaceName(TestHost testHost) 695public Task DynamicAsClassName(TestHost testHost) 709public Task DynamicAsConstructorDeclarationName(TestHost testHost) 731public Task DynamicAsNamespaceAlias(TestHost testHost) 742public Task DynamicAsGotoLabel(TestHost testHost) 761public Task DynamicAsEnumField(TestHost testHost) 774public Task DynamicAsEnumFieldDefinition(TestHost testHost) 790public Task DynamicAsEnumType(TestHost testHost) 804public Task DynamicAsGenericTypeParameter(TestHost testHost) 831public Task DynamicAsFieldType(TestHost testHost) 838public Task DynamicAsStaticFieldType(TestHost testHost) 847public Task DynamicAsLocalVariableType(TestHost testHost) 854public Task DynamicAsArrayLocalVariableType(TestHost testHost) 863public Task DynamicAsLambdaParameterType(TestHost testHost) 886public Task DynamicArray(TestHost testHost) 901public Task DynamicConstructor(TestHost testHost) 915public Task DynamicAfterIs(TestHost testHost) 926public Task DynamicAfterAs(TestHost testHost) 936public Task DynamicAsGenericTypeArgument(TestHost testHost) 956public Task DynamicAsSecondGenericTypeArgument(TestHost testHost) 970public Task DynamicAsRegionLabel(TestHost testHost) 983public Task DynamicAsInterfaceType(TestHost testHost) 997public Task DynamicAsStructType(TestHost testHost) 1011public Task DynamicAsUndefinedGenericType(TestHost testHost)
CodeActions\AddUsing\AbstractAddUsingTests.cs (1)
30TestHost testHost,
CodeActions\AddUsing\AddUsingTests.cs (154)
25public Task TestTypeFromMultipleNamespaces1(TestHost testHost) 49public Task TestTypeFromMultipleNamespaces1_FileScopedNamespace_Outer(TestHost testHost) 77public Task TestTypeFromMultipleNamespaces1_FileScopedNamespace_Inner(TestHost testHost) 109public Task TestAddImportWithCaseChange(TestHost testHost) 139public Task TestTypeFromMultipleNamespaces2(TestHost testHost) 164public Task TestGenericWithNoArgs(TestHost testHost) 188public Task TestGenericWithCorrectArgs(TestHost testHost) 238public Task TestGenericInLocalDeclaration(TestHost testHost) 262public Task TestGenericItemType(TestHost testHost) 283public Task TestGenerateWithExistingUsings(TestHost testHost) 310public Task TestGenerateInNamespace(TestHost testHost) 340public Task TestGenerateInNamespaceWithUsings(TestHost testHost) 389public Task TestExistingUsing(TestHost testHost) 417public Task TestAddUsingForGenericExtensionMethod(TestHost testHost) 485public Task TestOnEnum(TestHost testHost) 529public Task TestOnClassInheritance(TestHost testHost) 559public Task TestOnImplementedInterface(TestHost testHost) 589public async Task TestAllInBaseList(TestHost testHost) 680public Task TestAttributeUnexpanded(TestHost testHost) 698public Task TestAttributeExpanded(TestHost testHost) 717public Task TestAfterNew(TestHost testHost) 743public Task TestArgumentsInMethodCall(TestHost testHost) 767public Task TestCallSiteArgs(TestHost testHost) 789public Task TestUsePartialClass(TestHost testHost) 827public Task TestGenericClassInNestedNamespace(TestHost testHost) 872public Task TestExtensionMethods(TestHost testHost) 902public Task TestQueryPatterns(TestHost testHost) 936public Task TestSimplePresortedUsings1(TestHost testHost) 985public Task TestSimplePresortedUsings2(TestHost testHost) 1034public Task TestSimpleUnsortedUsings1(TestHost testHost) 1083public Task TestSimpleUnsortedUsings2(TestHost testHost) 1132public Task TestMultiplePresortedUsings1(TestHost testHost) 1181public Task TestMultiplePresortedUsings2(TestHost testHost) 1230public Task TestMultiplePresortedUsings3(TestHost testHost) 1285public Task TestMultipleUnsortedUsings1(TestHost testHost) 1340public Task TestMultipleUnsortedUsings2(TestHost testHost) 1390public Task TestSimpleSystemSortedUsings1(TestHost testHost) 1440public Task TestSimpleSystemSortedUsings2(TestHost testHost) 1492public Task TestSimpleSystemSortedUsings3(TestHost testHost) 1522public Task TestSimpleSystemUnsortedUsings1(TestHost testHost) 1574public Task TestSimpleSystemUnsortedUsings2(TestHost testHost) 1626public Task TestSimpleSystemUnsortedUsings3(TestHost testHost) 1656public Task TestSimpleBogusSystemUsings1(TestHost testHost) 1684public Task TestSimpleBogusSystemUsings2(TestHost testHost) 1712public Task TestUsingsWithComments(TestHost testHost) 1741public Task TestSimpleSystemUnsortedUsings4(TestHost testHost) 1793public Task TestSimpleSystemSortedUsings5(TestHost testHost) 1843public Task TestSimpleSystemSortedUsings4(TestHost testHost) 1898public Task TestAddUsingForFieldWithFormatting(TestHost testHost) 1909public Task BugFix5688(TestHost testHost) 1932public Task TestAddAfterDefineDirective1(TestHost testHost) 1966public Task TestAddAfterDefineDirective2(TestHost testHost) 1994public Task TestAddAfterDefineDirective3(TestHost testHost) 2024public Task TestAddAfterDefineDirective4(TestHost testHost) 2054public Task TestAddAfterExistingBanner(TestHost testHost) 2084public Task TestAddAfterExternAlias1(TestHost testHost) 2116public Task TestAddAfterExternAlias2(TestHost testHost) 2175public Task TestAssemblyAttribute(TestHost testHost) 2202public Task TestAddToVisibleRegion(TestHost testHost) 2261public Task TestAttribute(TestHost testHost) 2292public Task TestAddUsingForGenericArgument(TestHost testHost) 2337public Task ShouldTriggerOnCS0308(TestHost testHost) 2365public Task TestConflictedInaccessibleType(TestHost testHost) 2406public Task TestConflictedAttributeName(TestHost testHost) 2425public Task TestConflictedGenericName(TestHost testHost) 2464public Task TestNoDuplicateReport(TestHost testHost) 2519public Task TestAddUsingsWithExternAlias(TestHost testHost) 2563public Task TestAddUsingsWithPreExistingExternAlias(TestHost testHost) 2618public Task TestAddUsingsWithPreExistingExternAlias_FileScopedNamespace(TestHost testHost) 2671public Task TestAddUsingsNoExtern(TestHost testHost) 2715public Task TestAddUsingsNoExtern_FileScopedNamespace(TestHost testHost) 2756public Task TestAddUsingsNoExternFilterGlobalAlias(TestHost testHost) 2903public Task TestAddStaticType(TestHost testHost) 2939public Task TestAddStaticType2(TestHost testHost) 2979public Task TestAddStaticType3(TestHost testHost) 3023public Task TestAddStaticType4(TestHost testHost) 3065public Task TestAddInsideUsingDirective1(TestHost testHost) 3084public Task TestAddInsideUsingDirective2(TestHost testHost) 3106public Task TestAddInsideUsingDirective3(TestHost testHost) 3145public Task TestAddInsideUsingDirective4(TestHost testHost) 3181public Task TestAddInsideUsingDirective5(TestHost testHost) 3228public Task TestAddConditionalAccessExpression(TestHost testHost) 3262public Task TestAddConditionalAccessExpression2(TestHost testHost) 3308public Task TestAmbiguousUsingName(TestHost testHost) 3371public Task TestAddUsingInDirective(TestHost testHost) 3410public Task TestAddUsingInDirective2(TestHost testHost) 3438public Task TestAddUsingInDirective3(TestHost testHost) 3465public Task TestAddUsingInDirective4(TestHost testHost) 3519public Task TestAddUsingForProperty(TestHost testHost) 3559public Task TestAddUsingForField(TestHost testHost) 3615public Task TestNameSimplification(TestHost testHost) 3665public Task TestAddUsingWithOtherExtensionsInScope(TestHost testHost) 3739public Task TestAddUsingWithOtherExtensionsInScope2(TestHost testHost) 3813public Task TestAddUsingWithOtherExtensionsInScope3(TestHost testHost) 3851public Task TestAddUsingWithOtherExtensionsInScope4(TestHost testHost) 3897public Task TestNestedNamespaceSimplified(TestHost testHost) 3931public Task TestNestedNamespaceSimplified2(TestHost testHost) 3965public Task TestNestedNamespaceSimplified3(TestHost testHost) 4001public Task TestNestedNamespaceSimplified4(TestHost testHost) 4037public Task TestNestedNamespaceSimplified5(TestHost testHost) 4077public Task TestNestedNamespaceSimplified6(TestHost testHost) 4118public Task TestAddUsingOrdinalUppercase(TestHost testHost) 4176public Task TestAddUsingOrdinalLowercase(TestHost testHost) 4235public Task TestWithExistingIncompatibleExtension(TestHost testHost) 4285public Task TestIncompleteCatchBlockInLambda(TestHost testHost) 4310public Task TestAddInsideLambda(TestHost testHost) 4330public Task TestAddInsideLambda2(TestHost testHost) 4350public Task TestAddInsideLambda3(TestHost testHost) 4378public Task TestAddInsideLambda4(TestHost testHost) 4407public Task TestIncompleteParenthesizedLambdaExpression(TestHost testHost) 4439public Task TestExtensionWithIncompatibleInstance(TestHost testHost) 4495public Task TestFormattingForNamespaceUsings(TestHost testHost) 4586public Task TestAddUsingWithLeadingDocCommentInFrontOfUsing1(TestHost testHost) 4612public Task TestAddUsingWithLeadingDocCommentInFrontOfUsing2(TestHost testHost) 4640public Task TestAddUsingWithLeadingDocCommentInFrontOfClass1(TestHost testHost) 4662public Task TestPlaceUsingWithUsings_NotWithAliases(TestHost testHost) 4700public Task TestPreferSystemNamespaceFirst(TestHost testHost) 4745public Task TestPreferSystemNamespaceFirst2(TestHost testHost) 4810public Task TestChangeCaseWithUsingsInNestedNamespace(TestHost testHost) 4891public Task TestWhenInRome1(TestHost testHost) 4942public Task TestWhenInRome2(TestHost testHost) 5032public Task TestGetAwaiterExtensionMethod1(TestHost testHost) 5112public Task TestGetAwaiterExtensionMethod2(TestHost testHost) 5192public Task TestAddUsingForAwaitableReturningExtensionMethod(TestHost testHost) 5249public Task TestAddUsingForExtensionGetEnumeratorReturningIEnumerator(TestHost testHost) 5299public Task TestAddUsingForExtensionGetEnumeratorReturningPatternEnumerator(TestHost testHost) 5384public Task TestAddUsingForExtensionGetEnumeratorReturningPatternEnumeratorWrongAsync(TestHost testHost) 5490public Task TestAddUsingForExtensionGetAsyncEnumeratorReturningIAsyncEnumerator(TestHost testHost) 5541public Task TestAddUsingForExtensionGetAsyncEnumeratorReturningPatternEnumerator(TestHost testHost) 5629public Task TestAddUsingForExtensionGetAsyncEnumeratorReturningPatternEnumeratorWrongAsync(TestHost testHost) 5741public Task UsingPlacedWithStaticUsingInNamespace_WhenNoExistingUsings(TestHost testHost) 5769public Task UsingPlacedWithStaticUsingInInnerNestedNamespace_WhenNoExistingUsings(TestHost testHost) 5803public Task UsingPlacedWithStaticUsingInOuterNestedNamespace_WhenNoExistingUsings(TestHost testHost) 5837public Task UsingPlacedWithExistingUsingInCompilationUnit_WhenStaticUsingInNamespace(TestHost testHost) 5869public Task UsingPlacedWithExistingUsing_WhenStaticUsingInInnerNestedNamespace(TestHost testHost) 5907public Task UsingPlacedWithExistingUsing_WhenStaticUsingInOuterNestedNamespace(TestHost testHost) 5945public Task UsingPlacedWithUsingAliasInNamespace_WhenNoExistingUsing(TestHost testHost) 5973public Task UsingPlacedWithUsingAliasInInnerNestedNamespace_WhenNoExistingUsing(TestHost testHost) 6007public Task UsingPlacedWithUsingAliasInOuterNestedNamespace_WhenNoExistingUsing(TestHost testHost) 6041public Task UsingPlacedWithExistingUsingInCompilationUnit_WhenUsingAliasInNamespace(TestHost testHost) 6073public Task UsingPlacedWithExistingUsing_WhenUsingAliasInInnerNestedNamespace(TestHost testHost) 6111public Task UsingPlacedWithExistingUsing_WhenUsingAliasInOuterNestedNamespace(TestHost testHost) 6149public Task KeepUsingsGrouped1(TestHost testHost) 6271public Task TestAddUsingsEditorBrowsableNeverSameProject(TestHost testHost) 6306public Task TestAddUsingsEditorBrowsableNeverDifferentProject(TestHost testHost) 6336public Task TestAddUsingsEditorBrowsableAdvancedDifferentProjectOptionOn(TestHost testHost) 6372public Task TestAddUsingsEditorBrowsableAdvancedDifferentProjectOptionOff(TestHost testHost) 6408public Task TestAddUsingPreservesNewlines1(TestHost testHost, [CombinatorialValues("\n", "\r\n")] string sourceNewLine, [CombinatorialValues("\n", "\r\n")] string configuredNewLine) 6449public Task TestAddUsingPreservesNewlines2(TestHost testHost, [CombinatorialValues("\n", "\r\n")] string sourceNewLine, [CombinatorialValues("\n", "\r\n")] string configuredNewLine) 6501public Task TestAddUsingPreservesNewlines3(TestHost testHost, [CombinatorialValues("\n", "\r\n")] string sourceNewLine, [CombinatorialValues("\n", "\r\n")] string configuredNewLine) 6553public Task TestAddUsingWithMalformedGeneric(TestHost testHost) 6573public Task TestOutsideOfMethodWithMalformedGenericParameters(TestHost testHost) 6597public Task TestAssemblyLevelAttribute(TestHost testHost) 6609public Task TestAddUsingsWithSourceGeneratedFile(TestHost testHost)
CodeActions\AddUsing\AddUsingTests_ExtensionMethods.cs (3)
1117public Task TestAddUsingForAddExtensionMethodWithSameNameAsProperty(TestHost testHost) 1180public Task TestExtensionGetAwaiterOverload(TestHost testHost) 1268public Task TestExtensionSelectOverload(TestHost testHost)
CodeActions\AddUsing\AddUsingTests_Razor.cs (1)
17public Task TestAddIntoHiddenRegionWithModernSpanMapper(TestHost host)
Interactive\NavigateTo\InteractiveNavigateToTests.cs (38)
30public Task NoItemsForEmptyFile(TestHost testHost, Composition composition) 38public Task FindClass(TestHost testHost, Composition composition) 52public Task FindNestedClass(TestHost testHost, Composition composition) 72public Task FindMemberInANestedClass(TestHost testHost, Composition composition) 95public Task FindGenericClassWithConstraints(TestHost testHost, Composition composition) 111public Task FindGenericMethodWithConstraints(TestHost testHost, Composition composition) 130public Task FindPartialClass(TestHost testHost, Composition composition) 154public Task FindTypesInMetadata(TestHost testHost, Composition composition) 168public Task FindClassInNamespace(TestHost testHost, Composition composition) 185public Task FindStruct(TestHost testHost, Composition composition) 199public Task FindEnum(TestHost testHost, Composition composition) 216public Task FindEnumMember(TestHost testHost, Composition composition) 233public Task FindConstField(TestHost testHost, Composition composition) 248public Task FindVerbatimIdentifier(TestHost testHost, Composition composition) 263public Task FindIndexer(TestHost testHost, Composition composition) 272public Task FindEvent(TestHost testHost, Composition composition) 281public Task FindAutoProperty(TestHost testHost, Composition composition) 296public Task FindMethod(TestHost testHost, Composition composition) 311public Task FindParameterizedMethod(TestHost testHost, Composition composition) 328public Task FindConstructor(TestHost testHost, Composition composition) 345public Task FindParameterizedConstructor(TestHost testHost, Composition composition) 362public Task FindStaticConstructor(TestHost testHost, Composition composition) 379public Task FindPartialMethods(TestHost testHost, Composition composition) 392public Task FindPartialMethodDefinitionOnly(TestHost testHost, Composition composition) 407public Task FindOverriddenMembers(TestHost testHost, Composition composition) 434public Task FindInterface(TestHost testHost, Composition composition) 448public Task FindDelegateInNamespace(TestHost testHost, Composition composition) 463public Task FindLambdaExpression(TestHost testHost, Composition composition) 480public Task OrderingOfConstructorsAndTypes(TestHost testHost, Composition composition) 517public Task StartStopSanity(TestHost testHost, Composition composition) 539public Task DescriptionItems(TestHost testHost, Composition composition) 565public Task TermSplittingTest1(TestHost testHost, Composition composition) 582public Task TermSplittingTest2(TestHost testHost, Composition composition) 596public Task TermSplittingTest3(TestHost testHost, Composition composition) 610public Task TermSplittingTest4(TestHost testHost, Composition composition) 619public Task TermSplittingTest5(TestHost testHost, Composition composition) 628public Task TermSplittingTest7(TestHost testHost, Composition composition) 642public Task TermSplittingTest8(TestHost testHost, Composition composition)
NavigateTo\NavigateToTests.cs (86)
30public Task NoItemsForEmptyFile(TestHost testHost, Composition composition) 37public Task FindClass(TestHost testHost, Composition composition) 50public Task FindRecord(TestHost testHost, Composition composition) 63public Task FindRecordClass(TestHost testHost, Composition composition) 76public async Task FindRecordStruct(TestHost testHost, Composition composition) 97public async Task FindClassInFileScopedNamespace(TestHost testHost, Composition composition) 117public Task FindVerbatimClass(TestHost testHost, Composition composition) 134public Task FindNestedClass(TestHost testHost, Composition composition) 153public Task FindMemberInANestedClass(TestHost testHost, Composition composition) 175public Task FindGenericClassWithConstraints(TestHost testHost, Composition composition) 190public Task FindGenericMethodWithConstraints(TestHost testHost, Composition composition) 208public Task FindPartialClass(TestHost testHost, Composition composition) 229public Task FindTypesInMetadata(TestHost testHost, Composition composition) 242public Task FindClassInNamespace(TestHost testHost, Composition composition) 258public Task FindStruct(TestHost testHost, Composition composition) 271public Task FindEnum(TestHost testHost, Composition composition) 287public Task FindEnumMember(TestHost testHost, Composition composition) 303public Task FindField1(TestHost testHost, Composition composition) 317public Task FindField2(TestHost testHost, Composition composition) 331public Task FindField3(TestHost testHost, Composition composition) 344public Task FindVerbatimField(TestHost testHost, Composition composition) 362public Task FindPtrField1(TestHost testHost, Composition composition) 375public Task FindPtrField2(TestHost testHost, Composition composition) 389public Task FindConstField(TestHost testHost, Composition composition) 403public Task FindIndexer(TestHost testHost, Composition composition) 411public Task FindEvent(TestHost testHost, Composition composition) 419public Task FindAutoProperty(TestHost testHost, Composition composition) 433public Task FindMethod(TestHost testHost, Composition composition) 447public Task FindVerbatimMethod(TestHost testHost, Composition composition) 465public Task FindParameterizedMethod(TestHost testHost, Composition composition) 481public Task FindConstructor(TestHost testHost, Composition composition) 497public Task FindParameterizedConstructor(TestHost testHost, Composition composition) 513public Task FindStaticConstructor(TestHost testHost, Composition composition) 529public Task FindPartialMethods(TestHost testHost, Composition composition) 540public Task FindPartialProperties(TestHost testHost, Composition composition) 551public Task FindPartialEvents(TestHost testHost, Composition composition) 567public Task FindPartialConstructors(TestHost testHost, Composition composition) 583public Task FindPartialMethodDefinitionOnly(TestHost testHost, Composition composition) 597public Task FindPartialMethodImplementationOnly(TestHost testHost, Composition composition) 613public Task FindOverriddenMembers(TestHost testHost, Composition composition) 638public Task FindInterface(TestHost testHost, Composition composition) 651public Task FindTopLevelLocalFunction(TestHost testHost, Composition composition) 664public Task FindTopLevelLocalFunction_WithParameters(TestHost testHost, Composition composition) 677public Task FindTopLevelLocalFunction_WithTypeArgumentsAndParameters(TestHost testHost, Composition composition) 690public Task FindNestedLocalFunctionTopLevelStatements(TestHost testHost, Composition composition) 706public Task FindLocalFunctionInMethod(TestHost testHost, Composition composition) 728public Task FindNestedLocalFunctionInMethod(TestHost testHost, Composition composition) 750public Task FindDelegateInNamespace(TestHost testHost, Composition composition) 764public Task FindLambdaExpression(TestHost testHost, Composition composition) 780public Task FindArray(TestHost testHost, Composition composition) 794public Task FindClassAndMethodWithSameName(TestHost testHost, Composition composition) 816public Task FindMethodNestedInGenericTypes(TestHost testHost, Composition composition) 838public Task OrderingOfConstructorsAndTypes(TestHost testHost, Composition composition) 871public Task NavigateToMethodWithNullableParameter(TestHost testHost, Composition composition) 887public Task StartStopSanity(TestHost testHost, Composition composition) 908public Task DescriptionItems(TestHost testHost, Composition composition) 933public Task TermSplittingTest1(TestHost testHost, Composition composition) 946public Task TermSplittingTest2(TestHost testHost, Composition composition) 958public Task TermSplittingTest3(TestHost testHost, Composition composition) 970public Task TermSplittingTest4(TestHost testHost, Composition composition) 978public Task TermSplittingTest5(TestHost testHost, Composition composition) 986public Task TermSplittingTest6(TestHost testHost, Composition composition) 999public Task TermSplittingTest7(TestHost testHost, Composition composition) 1007public Task TestIndexer1(TestHost testHost, Composition composition) 1030public Task DottedPattern1(TestHost testHost, Composition composition) 1039public Task DottedPattern2(TestHost testHost, Composition composition) 1048public Task DottedPattern3(TestHost testHost, Composition composition) 1057public Task DottedPattern4(TestHost testHost, Composition composition) 1066public Task DottedPattern5(TestHost testHost, Composition composition) 1075public Task DottedPattern6(TestHost testHost, Composition composition) 1085public Task DottedPattern7(TestHost testHost, Composition composition) 1095public Task DottedPatternMatchKind(TestHost testHost, Composition composition) 1148public Task FindFuzzy1(TestHost testHost, Composition composition) 1165public Task Test__arglist(TestHost testHost, Composition composition) 1451public Task FindMethodWithTuple(TestHost testHost, Composition composition) 1470public Task FindRecordMember1(TestHost testHost, Composition composition) 1484public Task FindRecordMember2(TestHost testHost, Composition composition) 1499public Task FindRecordMember3(TestHost testHost, Composition composition) 1518public Task NavigateToPrioritizeResultInCurrentDocument1(TestHost testHost) 1558public Task NavigateToPrioritizeResultInCurrentDocument2(TestHost testHost) 1598public Task NavigateToPrioritizeResultInCurrentDocument3(TestHost testHost) 1638public Task NavigateToPrioritizeResultInCurrentDocument4(TestHost testHost) 1678public Task NavigateToPrioritizeResultInCurrentDocument5(TestHost testHost) 1718public async Task FindModernExtensionMethod1(TestHost testHost, Composition composition) 1745public async Task FindModernExtensionMethod2(TestHost testHost, Composition composition) 1772public async Task FindModernExtensionProperty(TestHost testHost, Composition composition)
TaskList\CSharpTaskListTests.cs (17)
20public Task SingleLineTodoComment_Colon(TestHost host) 24public Task SingleLineTodoComment_Space(TestHost host) 28public Task SingleLineTodoComment_Underscore(TestHost host) 32public Task SingleLineTodoComment_Number(TestHost host) 36public Task SingleLineTodoComment_Quote(TestHost host) 42public Task SingleLineTodoComment_Middle(TestHost host) 46public Task SingleLineTodoComment_Document(TestHost host) 50public Task SingleLineTodoComment_Preprocessor1(TestHost host) 54public Task SingleLineTodoComment_Preprocessor2(TestHost host) 58public Task SingleLineTodoComment_Region(TestHost host) 62public Task SingleLineTodoComment_EndRegion(TestHost host) 66public Task SingleLineTodoComment_TrailingSpan(TestHost host) 70public Task MultilineTodoComment_Singleline(TestHost host) 74public Task MultilineTodoComment_Singleline_Document(TestHost host) 78public Task MultilineTodoComment_Multiline(TestHost host) 88public Task MultilineTodoComment_Multiline_DocComment(TestHost host) 98public Task SinglelineDocumentComment_Multiline(TestHost host)
TaskList\NoCompilationTaskListTests.cs (1)
46public Task TodoCommentInNoCompilationProject(TestHost host)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (175)
ConvertTupleToStruct\ConvertTupleToStructTests.cs (50)
47TestHost testHost = TestHost.OutOfProcess, 71public Task ConvertSingleTupleType(TestHost host) 134public Task ConvertSingleTupleTypeToRecord(TestHost host) 167public Task ConvertSingleTupleTypeToRecord_FileScopedNamespace(TestHost host) 204public Task ConvertSingleTupleTypeToRecord_MatchedNameCasing(TestHost host) 237public Task ConvertSingleTupleType_ChangeArgumentNameCase(TestHost host) 300public async Task ConvertSingleTupleType_ChangeArgumentNameCase_Uppercase(TestHost host) 395public Task ConvertSingleTupleType_Explicit(TestHost host) 458public Task ConvertSingleTupleTypeNoNames(TestHost host) 521public Task ConvertSingleTupleTypePartialNames(TestHost host) 584public Task ConvertFromType(TestHost host) 649public Task ConvertFromType2(TestHost host) 716public Task ConvertFromType3(TestHost host) 783public Task ConvertFromType4(TestHost host) 848public Task ConvertSingleTupleTypeInNamespace(TestHost host) 917public Task TestNonLiteralNames_WithUsings(TestHost host) 982public Task TestNonLiteralNames_WithoutUsings(TestHost host) 1045public Task ConvertSingleTupleTypeWithInferredName(TestHost host) 1108public Task ConvertMultipleInstancesInSameMethod(TestHost host) 1173public Task ConvertMultipleInstancesAcrossMethods(TestHost host) 1250public Task OnlyConvertMatchingTypesInSameMethod(TestHost host) 1319public Task TestFixAllMatchesInSingleMethod(TestHost host) 1388public Task TestFixNotAcrossMethods(TestHost host) 1465public Task TestTrivia_WithUsings(TestHost host) 1530public Task TestTrivia_WithoutUsings(TestHost host) 1593public async Task NotIfReferencesAnonymousTypeInternally(TestHost host) 1609public Task ConvertMultipleNestedInstancesInSameMethod1_WithUsings(TestHost host) 1674public Task ConvertMultipleNestedInstancesInSameMethod1_WithoutUsings(TestHost host) 1739public Task ConvertMultipleNestedInstancesInSameMethod2_WithUsings(TestHost host) 1804public Task ConvertMultipleNestedInstancesInSameMethod2_WithoutUsings(TestHost host) 1869public Task RenameAnnotationOnStartingPoint(TestHost host) 1934public Task CapturedMethodTypeParameters_WithUsings(TestHost host) 2004public Task CapturedMethodTypeParameters_WithoutUsings(TestHost host) 2074public Task NewTypeNameCollision(TestHost host) 2145public Task TestDuplicatedName(TestHost host) 2281public Task TestInLambda1(TestHost host) 2356public Task TestInLambda2(TestHost host) 2431public Task TestInLocalFunction1(TestHost host) 2506public Task TestInLocalFunction2(TestHost host) 2581public Task ConvertWithDefaultNames1(TestHost host) 2656public Task ConvertWithDefaultNames2(TestHost host) 2735public Task TestCapturedTypeParameter_UpdateType_WithUsings(TestHost host) 2831public Task TestCapturedTypeParameter_UpdateType_WithoutUsings(TestHost host) 2924public Task UpdateAllInType_SinglePart_SingleFile(TestHost host) 3019public Task UpdateAllInType_MultiplePart_SingleFile(TestHost host) 3122public async Task UpdateAllInType_MultiplePart_MultipleFile(TestHost host) 3277public async Task UpdateAllInProject_MultiplePart_MultipleFile_WithNamespace(TestHost host) 3430public async Task UpdateDependentProjects_DirectDependency(TestHost host) 3571public async Task UpdateDependentProjects_NoDependency(TestHost host)
EncapsulateField\EncapsulateFieldTests.cs (46)
35TestHost host, 50public Task PrivateFieldToPropertyIgnoringReferences(TestHost host) 87public Task PrivateNullableFieldToPropertyIgnoringReferences(TestHost host) 126public Task PrivateFieldToPropertyUpdatingReferences(TestHost host) 163public Task TestCodeStyle1(TestHost host) 206public Task TestCodeStyle2(TestHost host) 237public Task PublicFieldIntoPublicPropertyIgnoringReferences(TestHost host) 274public Task PublicFieldIntoPublicPropertyUpdatingReferences(TestHost host) 311public Task StaticPreserved(TestHost host) 338public Task UniqueNameGenerated(TestHost host) 367public Task GenericField(TestHost host) 394public Task NewFieldNameIsUnique(TestHost host) 423public Task RespectReadonly(TestHost host) 445public Task PreserveNewAndConsiderBaseMemberNames(TestHost host) 486public Task EncapsulateMultiplePrivateFields(TestHost host) 538public Task EncapsulateMultiplePrivateFields2(TestHost host) 592public Task EncapsulateSinglePublicFieldInMultipleVariableDeclarationAndUpdateReferences(TestHost host) 632public Task ConstFieldNoGetter(TestHost host) 654public Task EncapsulateFieldNamedValue(TestHost host) 676public Task PublicFieldNamed__(TestHost host) 703public Task AvailableNotJustOnVariableName(TestHost host) 712public Task CopyFieldAccessibility(TestHost host) 734public Task UpdateReferencesCrossProject(TestHost host) 799public Task PreserveUnsafe(TestHost host) 826public Task ConsiderReturnTypeAccessibility(TestHost host) 863public Task DoNotReferToReadOnlyPropertyInConstructor(TestHost host) 895public Task DoNotReferToStaticReadOnlyPropertyInConstructor(TestHost host) 927public Task GenerateInTheCorrectPart(TestHost host) 956public Task ErrorTolerance(TestHost host) 965public Task DuplicateFieldErrorTolerance(TestHost host) 975public Task Trivia(TestHost host) 1010public async Task DoNotEncapsulateOutsideTypeDeclaration(TestHost host) 1033public async Task AlwaysUseEnglishUSCultureWhenFixingVariableNames_TurkishDottedI(TestHost host) 1067public async Task AlwaysUseEnglishUSCultureWhenFixingVariableNames_TurkishUndottedI(TestHost host) 1101public async Task AlwaysUseEnglishUSCultureWhenFixingVariableNames_Arabic(TestHost host) 1135public async Task AlwaysUseEnglishUSCultureWhenFixingVariableNames_Spanish(TestHost host) 1169public async Task AlwaysUseEnglishUSCultureWhenFixingVariableNames_Greek(TestHost host) 1203public Task TestEncapsulateEscapedIdentifier(TestHost host) 1230public Task TestEncapsulateEscapedIdentifierAndQualifiedAccess(TestHost host) 1257public Task ApplyCurrentThisPrefixStyle(TestHost host) 1286public Task TestTuple(TestHost host) 1323public Task TupleWithNames(TestHost host) 1360public Task FunctionPointer(TestHost host) 1397public Task FunctionPointerWithPrivateTypeParameter(TestHost host) 1436public Task FunctionPointerWithPrivateTypeReturnValue(TestHost host) 1475public Task PrimaryConstructor(TestHost host, bool andUseProperty)
FullyQualify\FullyQualifyTests.cs (68)
31public Task TestTypeFromMultipleNamespaces1(TestHost testHost) 53public Task TestTypeFromMultipleNamespaces2(TestHost testHost) 77public Task TestPreservesIncorrectIndentation1(TestHost testHost) 100public Task TestPreservesIncorrectIndentation2(TestHost testHost) 122public Task TestGenericWithNoArgs(TestHost testHost) 144public Task TestGenericWithCorrectArgs(TestHost testHost) 166public Task TestSmartTagDisplayText(TestHost testHost) 180public Task TestGenericWithWrongArgs(TestHost testHost) 193public Task TestNotOnVar1(TestHost testHost) 211public Task TestNotOnVar2(TestHost testHost) 229public Task TestGenericInLocalDeclaration(TestHost testHost) 251public Task TestGenericItemType(TestHost testHost) 271public Task TestGenerateWithExistingUsings(TestHost testHost) 297public Task TestGenerateInNamespace(TestHost testHost) 325public Task TestGenerateInNamespaceWithUsings(TestHost testHost) 357public async Task TestExistingUsing(TestHost testHost) 399public Task TestMissingIfUniquelyBound(TestHost testHost) 414public Task TestMissingIfUniquelyBoundGeneric(TestHost testHost) 429public Task TestOnEnum(TestHost testHost) 471public Task TestOnClassInheritance(TestHost testHost) 499public Task TestOnImplementedInterface(TestHost testHost) 527public async Task TestAllInBaseList(TestHost testHost) 611public Task TestAttributeUnexpanded(TestHost testHost) 627public Task TestAttributeExpanded(TestHost testHost) 643public Task TestExtensionMethods(TestHost testHost) 659public Task TestAfterNew(TestHost testHost) 683public Task TestArgumentsInMethodCall(TestHost testHost) 705public Task TestCallSiteArgs(TestHost testHost) 725public Task TestUsePartialClass(TestHost testHost) 761public Task TestGenericClassInNestedNamespace(TestHost testHost) 803public Task TestBeforeStaticMethod(TestHost testHost) 823public Task TestBeforeNamespace(TestHost testHost) 865public Task TestSimpleNameWithLeadingTrivia(TestHost testHost) 871public Task TestGenericNameWithLeadingTrivia(TestHost testHost) 877public Task TestFullyQualifyTypeName(TestHost testHost) 907public Task TestFullyQualifyUnboundIdentifier3(TestHost testHost) 937public Task TestFullyQualifyTypeName_NotForGenericType(TestHost testHost) 954public Task TestFullyQualifyThroughAlias(TestHost testHost) 974public Task TestFullyQualifyPrioritizeTypesOverNamespaces1(TestHost testHost) 1010public Task TestFullyQualifyPrioritizeTypesOverNamespaces2(TestHost testHost) 1047public Task BugFix5950(TestHost testHost) 1054public Task TestAfterAlias(TestHost testHost) 1071public Task TestMissingOnIncompleteStatement(TestHost testHost) 1086public Task TestAssemblyAttribute(TestHost testHost) 1092public Task TestMissingOnAliasName(TestHost testHost) 1114public Task TestMissingOnAttributeOverloadResolutionError(TestHost testHost) 1127public Task TestNotOnAbstractConstructor(TestHost testHost) 1142public Task TestAttributeCount(TestHost testHost) 1146public Task TestAttribute(TestHost testHost) 1152public Task TestGeneratePropertyFromAttribute(TestHost testHost) 1169public Task ShouldTriggerOnCS0308(TestHost testHost) 1195public Task AmbiguousTypeFix(TestHost testHost) 1251public async Task NonPublicNamespaces(TestHost testHost) 1351public Task AmbiguousFixOrdering(TestHost testHost) 1407public Task TupleTest(TestHost testHost) 1429public Task TupleWithOneName(TestHost testHost) 1451public Task TestContextualKeyword1(TestHost testHost) 1471public Task TestDoNotQualifyToTheSameTypeToFixWrongArity(TestHost testHost) 1482public async Task TestNoNonGenericsWithGenericCodeParsedAsExpression(TestHost testHost) 1511public Task TestInUsingContext_Type(TestHost testHost) 1535public Task TestInUsingContext_Namespace(TestHost testHost) 1559public Task TestInUsingContext_UsingStatic(TestHost testHost) 1583public Task TestInUsingContext_UsingAlias(TestHost testHost) 1589public Task TestAddUsingsEditorBrowsableNeverSameProject(TestHost testHost) 1621public Task TestAddUsingsEditorBrowsableNeverDifferentProject(TestHost testHost) 1650public Task TestAddUsingsEditorBrowsableAdvancedDifferentProjectOptionOn(TestHost testHost) 1685public Task TestAddUsingsEditorBrowsableAdvancedDifferentProjectOptionOff(TestHost testHost) 1716public Task TestFullyQualifyWithSourceGeneratedFile(TestHost testHost)
RelatedDocuments\CSharpRelatedDocumentsTests.cs (11)
15public async Task EmptyDocument(TestHost testHost) 25public async Task ReferenceToSameDocument(TestHost testHost) 40public async Task MultipleReferencesToSameDocument(TestHost testHost) 56public async Task ReferenceToDifferentDocument(TestHost testHost) 76public async Task MultipleReferencesToDifferentDocument(TestHost testHost) 97public async Task ReferenceWithinGeneric(TestHost testHost) 117public async Task QualifiedReferenceWithinGeneric(TestHost testHost) 139public async Task QualifiedReferenceThroughStaticWithinGeneric(TestHost testHost) 165public async Task ReferenceToPartialType(TestHost testHost) 190public async Task NoReferenceToNamespace(TestHost testHost) 213public async Task ReferenceAcrossProjects(TestHost testHost)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (32)
Classification\AbstractClassifierTests.cs (22)
28protected abstract Task<ImmutableArray<ClassifiedSpan>> GetClassificationSpansAsync(string text, ImmutableArray<TextSpan> spans, ParseOptions? parseOptions, TestHost testHost); 35protected abstract Task DefaultTestAsync(string code, string allCode, TestHost testHost, FormattedClassification[] expected); 40TestHost testHost, 75TestHost testHost, 87TestHost testHost, 94TestHost testHost, 100TestHost testHost, 108TestHost testHost, 115TestHost testHost, 127TestHost testHost, 137TestHost testHost, 146TestHost testHost, 154TestHost testHost, 165TestHost testHost, 177TestHost testHost, 190TestHost testHost, 201TestHost testHost, 211TestHost testHost, 219TestHost testHost, 228TestHost testHost, 236TestHost testHost, 247TestHost testHost,
NavigateTo\AbstractNavigateToTests.cs (6)
86protected async Task TestAsync(TestHost testHost, Composition composition, string content, Func<EditorTestWorkspace, Task> body) 99protected async Task TestAsync(TestHost testHost, Composition composition, XElement content, Func<EditorTestWorkspace, Task> body) 113string content, Func<EditorTestWorkspace, Task> body, TestHost testHost, 121XElement content, Func<EditorTestWorkspace, Task> body, TestHost testHost, 130TestHost testHost, 142TestHost testHost,
TaskList\AbstractTaskListTests.cs (4)
20private static readonly TestComposition s_outOffProcessComposition = s_inProcessComposition.WithTestHostParts(TestHost.OutOfProcess); 22protected EditorTestWorkspace CreateWorkspace(string codeWithMarker, TestHost host) 23=> CreateWorkspace(codeWithMarker, host == TestHost.OutOfProcess ? s_outOffProcessComposition : s_inProcessComposition); 27protected async Task TestAsync(string codeWithMarker, TestHost host)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (131)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (1)
910internal async Task TestGeneratorProducedDiagnostics(bool fullSolutionAnalysis, bool analyzeProject, TestHost testHost)
InheritanceMargin\InheritanceMarginTests.cs (80)
28private static readonly TestComposition s_outOffProcessComposition = s_inProcessComposition.WithTestHostParts(TestHost.OutOfProcess); 32private static Task VerifyNoItemForDocumentAsync(string markup, string languageName, TestHost testHost) 38TestHost testHost, 61composition: testHost == TestHost.InProcess ? s_inProcessComposition : s_outOffProcessComposition); 71TestHost testHost, 92composition: testHost == TestHost.InProcess ? s_inProcessComposition : s_outOffProcessComposition); 193TestHost testHost) 218composition: testHost == TestHost.InProcess ? s_inProcessComposition : s_outOffProcessComposition); 369public Task TestCSharpClassWithErrorBaseType(TestHost testHost) 378public Task TestCSharpReferencingMetadata(TestHost testHost) 407public Task TestCSharpClassImplementingInterface(TestHost testHost) 441public Task TestCSharpInterfaceImplementingInterface(TestHost testHost) 474public Task TestCSharpClassInheritsClass(TestHost testHost) 507[InlineData("class", TestHost.InProcess)] 508[InlineData("class", TestHost.OutOfProcess)] 509[InlineData("struct", TestHost.InProcess)] 510[InlineData("struct", TestHost.OutOfProcess)] 511[InlineData("enum", TestHost.InProcess)] 512[InlineData("enum", TestHost.OutOfProcess)] 513[InlineData("interface", TestHost.InProcess)] 514[InlineData("interface", TestHost.OutOfProcess)] 515public Task TestCSharpTypeWithoutBaseType(string typeName, TestHost testHost) 524[InlineData("public Bar() { }", TestHost.InProcess)] 525[InlineData("public Bar() { }", TestHost.OutOfProcess)] 526[InlineData("public static void Bar3() { }", TestHost.InProcess)] 527[InlineData("public static void Bar3() { }", TestHost.OutOfProcess)] 528[InlineData("public static void ~Bar() { }", TestHost.InProcess)] 529[InlineData("public static void ~Bar() { }", TestHost.OutOfProcess)] 530[InlineData("public static Bar operator +(Bar a, Bar b) => new Bar();", TestHost.InProcess)] 531[InlineData("public static Bar operator +(Bar a, Bar b) => new Bar();", TestHost.OutOfProcess)] 532public Task TestCSharpSpecialMember(string memberDeclaration, TestHost testHost) 554public Task TestCSharpEventDeclaration(TestHost testHost) 613public Task TestCSharpEventFieldDeclarations(TestHost testHost) 686public Task TestCSharpInterfaceMembers(TestHost testHost) 811[InlineData("abstract", TestHost.InProcess)] 812[InlineData("abstract", TestHost.OutOfProcess)] 813[InlineData("virtual", TestHost.InProcess)] 814[InlineData("virtual", TestHost.OutOfProcess)] 815public Task TestCSharpAbstractClassMembers(string modifier, TestHost testHost) 911public Task TestCSharpOverrideMemberCanFindImplementingInterface(bool testDuplicate, TestHost testHost) 1048[InlineData("abstract", TestHost.InProcess)] 1049[InlineData("abstract", TestHost.OutOfProcess)] 1050[InlineData("virtual", TestHost.InProcess)] 1051[InlineData("virtual", TestHost.OutOfProcess)] 1052public Task TestCSharpAbstractClassMembers_LooseMatch(string modifier, TestHost testHost) 1148public Task TestCSharpFindGenericsBaseType(TestHost testHost) 1206public Task TestCSharpExplicitInterfaceImplementation(TestHost testHost) 1265public Task TestStaticAbstractMemberInterface(TestHost testHost) 1401public Task TestCSharpPartialClass(TestHost testHost) 1451public Task TestEmptyFileSingleGlobalImportInOtherFile(TestHost testHost) 1463public Task TestEmptyFileMultipleGlobalImportInOtherFile(TestHost testHost) 1485public Task TestFileWithUsing_SingleGlobalImportInOtherFile(TestHost testHost) 1500public Task TestIgnoreGlobalImportFromSameFile(TestHost testHost) 1520public Task TestVisualBasicWithErrorBaseType(TestHost testHost) 1531public Task TestVisualBasicReferencingMetadata(TestHost testHost) 1563public Task TestVisualBasicClassImplementingInterface(TestHost testHost) 1597public Task TestVisualBasicInterfaceImplementingInterface(TestHost testHost) 1625public Task TestVisualBasicClassInheritsClass(TestHost testHost) 1653[InlineData("Class", TestHost.InProcess)] 1654[InlineData("Class", TestHost.OutOfProcess)] 1655[InlineData("Structure", TestHost.InProcess)] 1656[InlineData("Structure", TestHost.OutOfProcess)] 1657[InlineData("Enum", TestHost.InProcess)] 1658[InlineData("Enum", TestHost.OutOfProcess)] 1659[InlineData("Interface", TestHost.InProcess)] 1660[InlineData("Interface", TestHost.OutOfProcess)] 1661public Task TestVisualBasicTypeWithoutBaseType(string typeName, TestHost testHost) 1669public Task TestVisualBasicMetadataInterface(TestHost testHost) 1698public Task TestVisualBasicEventStatement(TestHost testHost) 1752public Task TestVisualBasicEventBlock(TestHost testHost) 1807public Task TestVisualBasicInterfaceMembers(TestHost testHost) 1890public Task TestVisualBasicMustInheritClassMember(TestHost testHost) 1946public Task TestVisualBasicOverrideMemberCanFindImplementingInterface(bool testDuplicate, TestHost testHost) 2089public Task TestVisualBasicFindGenericsBaseType(TestHost testHost) 2170public Task TestCSharpProjectReferencingVisualBasicProject(TestHost testHost) 2230public Task TestVisualBasicProjectReferencingCSharpProject(TestHost testHost) 2304public Task TestSameNameSymbolInDifferentLanguageProjects(TestHost testHost) 2369public Task TestSameNameSymbolInSameLanguageProjects(TestHost testHost) 2434public Task TestHiddenLocationSymbol(TestHost testHost) 2451public async Task TestNoResultOutsideSpan(TestHost testHost)
SymbolFinder\SymbolFinderTests.cs (21)
48private static TestWorkspace CreateWorkspace(TestHost host) 55public async Task ImmediatelyDerivedTypes_CSharp(TestHost host) 96public async Task ImmediatelyDerivedInterfaces_CSharp(TestHost host) 143public async Task ImmediatelyDerivedTypes_CSharp_AliasedNames(TestHost host) 188public async Task ImmediatelyDerivedTypes_CSharp_PortableProfile7(TestHost host) 229public async Task ImmediatelyDerivedTypes_VisualBasic(TestHost host) 271public async Task ImmediatelyDerivedTypes_CrossLanguage(TestHost host) 313public async Task ImmediatelyDerivedAndImplementingInterfaces_CSharp(TestHost host) 353public async Task ImmediatelyDerivedInterfaces_VisualBasic(TestHost host) 394public async Task ImmediatelyDerivedAndImplementingInterfaces_CrossLanguage(TestHost host) 434public async Task DerivedMetadataClasses(TestHost host) 465public async Task DerivedSourceInterfaces(TestHost host) 514public async Task ImplementingSourceTypes(TestHost host) 566public async Task ImplementingTypesDoesProduceDelegates(TestHost host) 593public async Task ImplementingTypesDoesProduceEnums(TestHost host) 624public async Task DependentTypeFinderSkipsNoCompilationLanguages(TestHost host) 667public async Task TestDerivedTypesWithIntermediaryType1(TestHost host) 731public async Task ImplementedInterface_CSharp1(TestHost host) 774public async Task ImplementedInterface_CSharp2(TestHost host) 802public async Task FindSourceDefinition_CrossAssembly(TestHost host) 840public async Task FindSourceDefinition_CrossAssembly_WithFrozen(TestHost host)
ValueTracking\AbstractBaseValueTrackingTests.cs (1)
21protected TestWorkspace CreateWorkspace(string code, TestHost testHost)
ValueTracking\CSharpValueTrackingTests.cs (20)
20public async Task TestProperty(TestHost testHost) 55public async Task TestPropertyWithThis(TestHost testHost) 90public async Task TestField(TestHost testHost) 127public async Task TestFieldWithThis(TestHost testHost) 164public async Task TestLocal(TestHost testHost) 193public async Task TestParameter(TestHost testHost) 221public async Task TestParameter2(TestHost testHost) 270public async Task TestMissingOnMethod(TestHost testHost) 290public async Task TestMissingOnClass(TestHost testHost) 310public async Task TestMissingOnNamespace(TestHost testHost) 333public async Task MethodTracking1(TestHost testHost) 451public async Task MethodTracking2(TestHost testHost) 628public async Task MethodTracking3(TestHost testHost) 704public async Task OutParam(TestHost testHost) 777public async Task TestVariableReferenceStart(TestHost testHost) 841public async Task TestVariableReferenceStart2(TestHost testHost) 905public async Task TestVariableReferenceStart3(TestHost testHost) 976public async Task TestMultipleDeclarators(TestHost testHost) 1047public async Task TestIndex(TestHost testHost) 1104public async Task TestPropertyValue(TestHost testHost)
ValueTracking\VisualBasicValueTrackingTests.cs (8)
20public async Task TestProperty(TestHost testHost) 62public async Task TestPropertyValue(TestHost testHost) 115public async Task TestField(TestHost testHost) 152public async Task TestLocal(TestHost testHost) 181public async Task TestParameter(TestHost testHost) 209public async Task TestVariableReferenceStart(TestHost testHost) 270public async Task TestVariableReferenceStart2(TestHost testHost) 331public async Task TestMultipleDeclarators(TestHost testHost)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
RelatedDocuments\AbstractRelatedDocumentsTests.cs (1)
22protected static async Task TestAsync(string testMarkup, TestHost testHost)
Microsoft.CodeAnalysis.Features.UnitTests (3)
EditAndContinue\RemoteEditAndContinueServiceTests.cs (3)
41public async Task Proxy(TestHost testHost) 46if (testHost == TestHost.InProcess) 59if (testHost == TestHost.InProcess)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
MEF\FeaturesTestCompositions.cs (2)
29public static TestComposition WithTestHostParts(this TestComposition composition, TestHost host) 30=> (host == TestHost.InProcess) ? composition : composition.AddAssemblies(typeof(RemoteWorkspacesResources).Assembly).AddParts(typeof(InProcRemoteHostClientProvider.Factory));
WorkspaceTestUtilities.cs (2)
14public static Workspace CreateWorkspaceWithPartialSemantics(Type[]? additionalParts = null, TestHost testHost = TestHost.InProcess)
Microsoft.CodeAnalysis.Workspaces.UnitTests (61)
FindAllDeclarationsTests.cs (3)
115public Task FindDeclarationsAsync_Test_Cancellation(TestHost testHost) 124public async Task FindDeclarationsAsync_Metadata(TestHost testHost) 147public async Task FindDeclarationsAsync_PreviousSubmission(TestHost testHost)
FindAllDeclarationsTests.TestSolutionsAndProject.cs (9)
75private Workspace CreateWorkspace(TestHost testHost = TestHost.OutOfProcess) 80if (testHost == TestHost.OutOfProcess) 89private Workspace CreateWorkspaceWithSingleProjectSolution(TestHost testHost, string[] sourceTexts, out Solution solution) 106private Workspace CreateWorkspaceWithMultipleProjectSolution(TestHost testHost, string[] sourceTexts, out Solution solution) 123private Workspace CreateWorkspaceWithSolution(SolutionKind solutionKind, out Solution solution, TestHost testHost = TestHost.OutOfProcess) 138private Workspace CreateWorkspaceWithProject(SolutionKind solutionKind, out Project project, TestHost testHost = TestHost.OutOfProcess)
Remote\ServiceDescriptorTests.cs (1)
367var hostServices = FeaturesTestCompositions.Features.WithTestHostParts(Testing.TestHost.OutOfProcess).GetHostServices();
SolutionTests\SolutionTestHelpers.cs (4)
16public static Workspace CreateWorkspace(Type[]? additionalParts = null, TestHost testHost = TestHost.InProcess) 19public static Workspace CreateWorkspaceWithPartialSemantics(TestHost testHost = TestHost.InProcess)
SolutionTests\SolutionWithSourceGeneratorTests.cs (44)
37bool fetchCompilationBeforeAddingAdditionalFile, TestHost testHost) 75public async Task WithReferencesMethodCorrectlyUpdatesWithEqualReferences(TestHost testHost) 123public async Task WithReferencesMethodCorrectlyAddsAndRemovesRunningGenerators(TestHost testHost) 154public async Task GeneratorAddedWithDifferentFilePathsProducesDistinctDocumentIds(TestHost testHost) 248public async Task SourceGeneratorContentStillIncludedAfterSourceFileChange(TestHost testHost) 288TestHost testHost) 332TestHost testHost, bool forceFreeze) 360public async Task DocumentIdOfGeneratedDocumentsIsStable(TestHost testHost) 382public async Task DocumentIdGuidInDifferentProjectsIsDifferent(TestHost testHost) 413public async Task CompilationsInCompilationReferencesIncludeGeneratedSourceFiles(TestHost testHost) 438public async Task GetDocumentWithGeneratedTreeReturnsGeneratedDocument(TestHost testHost) 452public async Task GetDocumentWithGeneratedTreeForInProgressReturnsGeneratedDocument(TestHost testHost) 475public async Task TreeReusedIfGeneratedFileDoesNotChangeBetweenRuns(TestHost testHost) 495public async Task TreeNotReusedIfParseOptionsChangeChangeBetweenRuns(TestHost testHost) 517public async Task ChangeToDocumentThatDoesNotImpactGeneratedDocumentReusesDeclarationTree(bool generatorProducesTree, TestHost testHost) 571public async Task CompilationNotCreatedByFetchingGeneratedFilesIfNoGeneratorsPresent(TestHost testHost) 583public async Task OpenSourceGeneratedUpdatedToBufferContentsWhenCallingGetOpenDocumentInCurrentContextWithChanges(TestHost testHost) 607public async Task OpenSourceGeneratedFileDoesNotCreateNewSnapshotIfContentsKnownToMatch(TestHost testHost) 626public async Task OpenSourceGeneratedFileMatchesBufferContentsEvenIfGeneratedFileIsMissingIsRemoved(TestHost testHost) 654public async Task OpenSourceGeneratedDocumentUpdatedAndVisibleInProjectReference(TestHost testHost) 685public async Task OpenSourceGeneratedDocumentsUpdateIsDocumentOpenAndCloseWorks(TestHost testHost) 710public async Task FreezingSolutionEnsuresGeneratorsDoNotRun(bool forkBeforeFreeze, TestHost testHost) 743public async Task ForkAfterForceFreezeNoLongerRunsGenerators(TestHost testHost) 772public async Task ForkAfterFreezeOfCompletedDocumentStillRunsGenerators(TestHost testHost) 801public async Task LinkedDocumentOfFrozenShouldNotRunSourceGenerator(TestHost testHost) 834public async Task DynamicFilesNotPassedToSourceGenerators(TestHost testHost) 862public async Task FreezingSourceGeneratedDocumentsWorks(TestHost testHost) 895public async Task FreezingSourceGeneratedDocumentsInTwoProjectsWorks(TestHost testHost) 920public async Task FreezingWithSameContentDoesNotFork(TestHost testHost) 938public async Task TestChangingGeneratorChangesChecksum(TestHost testHost) 978public async Task WithDocumentTexts_OrdinaryAndSourceGeneratedDocuments(TestHost testHost) 1010public async Task WithSyntaxRootWorksOnSourceGeneratedDocument(TestHost testHost) 1040public async Task WithSyntaxRootWorksOnSourceGeneratedDocument_OldCSharpVersion(TestHost testHost) 1080public async Task WithSyntaxRootWorksOnSourceGeneratedDocument_SameRoot_Noop(TestHost testHost) 1108public async Task WithSyntaxRootOnSourceGeneratedDocument_AnnotationsPreserved(TestHost testHost) 1135public async Task WithTextWorksOnSourceGeneratedDocument(TestHost testHost) 1163public async Task WithTextWorksOnSourceGeneratedDocument_Multiple(TestHost testHost) 1195public async Task MultipleWithTextUnfreezesFully(TestHost testHost) 1249public async Task WithTextWorksOnUnrealizedGeneratedDocument(TestHost testHost) 1284public async Task WithSyntaxRootWorksOnUnrealizedGeneratedDocument(TestHost testHost) 1321public async Task SolutionChanges_IncludesFrozenSourceGeneratedDocuments(TestHost testHost) 1352public async Task SolutionChanges_ExcludesRemovedFrozenSourceGeneratedDocuments(TestHost testHost) 1404using var workspace = CreateWorkspace([], TestHost.OutOfProcess); 1493composition: FeaturesTestCompositions.Features.WithTestHostParts(TestHost.OutOfProcess));
Roslyn.VisualStudio.Next.UnitTests (5)
Remote\RemoteHostClientServiceFactoryTests.cs (1)
25private static readonly TestComposition s_composition = FeaturesTestCompositions.Features.WithTestHostParts(TestHost.OutOfProcess);
Remote\SnapshotSerializationTests.cs (1)
42=> new AdhocWorkspace(FeaturesTestCompositions.Features.AddParts(additionalParts).WithTestHostParts(TestHost.OutOfProcess).GetHostServices());
Services\ServiceHubServicesTests.cs (1)
51composition: FeaturesTestCompositions.Features.WithTestHostParts(TestHost.OutOfProcess)
Services\SolutionServiceTests.cs (1)
35private static readonly TestComposition s_composition = FeaturesTestCompositions.Features.WithTestHostParts(TestHost.OutOfProcess);
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (1)
247var composition = EditorTestCompositions.EditorFeatures.WithTestHostParts(TestHost.OutOfProcess);