├── .gitignore ├── CONTRIBUTING.md ├── Images ├── Icon.png ├── MulitpleConsumption.png └── RedundantAssertion.png ├── LICENSE ├── README.md └── Sources ├── .nuget ├── NuGet.Config ├── NuGet.exe ├── NuGet.targets └── packages.config ├── Directory.Build.props ├── ExternalAnnotations └── .NETFramework │ └── mscorlib │ └── 4.0.0.0.xml ├── ReCommendedExtension.Deployment ├── Debug.cs ├── DoesNotReturnIfAttribute.cs ├── Program.cs ├── Properties │ ├── Settings.Designer.cs │ └── Settings.settings ├── ReCommendedExtension.Deployment.csproj ├── ReCommendedExtension.nuspec └── Rider │ ├── build.gradle.kts │ ├── dependencies.json │ ├── gradle.properties │ ├── gradle │ ├── libs.versions.toml │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties │ ├── gradlew.bat │ ├── settings.gradle.kts │ └── src │ └── rider │ └── main │ └── resources │ └── META-INF │ ├── plugin.xml │ └── pluginIcon.svg ├── ReCommendedExtension.Tests ├── Analyzers │ ├── Annotation │ │ ├── AnnotationAnalyzerArgumentTests.cs │ │ ├── AnnotationAnalyzerTests.cs │ │ ├── AnnotationAnalyzerTestsConditional.cs │ │ ├── AnnotationAnalyzerTestsForMsTestProjects.cs │ │ ├── AnnotationAnalyzerTestsForNUnitTestProjects.cs │ │ ├── AnnotationAnalyzerTestsForTestProjectsWithFlavor.cs │ │ ├── AnnotationAnalyzerTestsForXUnitTestProjects.cs │ │ ├── AnnotationAnalyzerTestsWithoutAnnotations.cs │ │ ├── AnnotationAnalyzerValueRangeTests.cs │ │ ├── AnnotationArgumentQuickFixAvailabilityTests.cs │ │ ├── AnnotationArgumentQuickFixTests.cs │ │ ├── AnnotationQuickFixAvailabilityTests.cs │ │ ├── AnnotationQuickFixTests.cs │ │ ├── CoerceValueRangeBoundaryQuickFixTests.cs │ │ └── NullableAnnotationQuickFixTests.cs │ ├── ArgumentExceptionConstructorArgument │ │ └── ArgumentExceptionConstructorArgumentAnalyzerTests.cs │ ├── AsyncVoid │ │ ├── AsyncVoidAnalyzerTests.cs │ │ ├── AsyncVoidQuickFixAvailabilityTests.cs │ │ ├── AsyncVoidQuickFixChangeTypeTests.cs │ │ └── AsyncVoidQuickFixRemoveTests.cs │ ├── Await │ │ └── AwaitAnalyzerTestsRedundantCapturedContext.cs │ ├── BaseType │ │ ├── BaseTypeAnalyzerTests.cs │ │ ├── BaseTypeQuickFixAvailabilityTests.cs │ │ └── BaseTypeQuickFixRemoveTests.cs │ ├── CatchClauseWithoutVariable │ │ ├── CatchClauseWithoutVariableAnalyzerTests.cs │ │ ├── CatchClauseWithoutVariableQuickFixAvailabilityTests.cs │ │ └── CatchClauseWithoutVariableQuickFixTests.cs │ ├── Collection │ │ ├── ArrayWithDefaultValuesInitializationQuickFixAvailabilityTests.cs │ │ ├── ArrayWithDefaultValuesInitializationQuickFixTests.cs │ │ ├── CollectionAnalyzerTests.cs │ │ ├── ReplaceWithArrayEmptyQuickFixAvailabilityTests.cs │ │ ├── ReplaceWithArrayEmptyQuickFixTests.cs │ │ ├── ReplaceWithCollectionExpressionQuickFixAvailabilityTests.cs │ │ └── ReplaceWithCollectionExpressionQuickFixTests.cs │ ├── ConditionalInvocation │ │ └── ConditionalInvocationAnalyzerTests.cs │ ├── ControlFlow │ │ ├── ControlFlowAnalyzerTests.cs │ │ ├── ControlFlowQuickFixAvailabilityTests.cs │ │ └── ControlFlowQuickFixTestsForAssertionStatement.cs │ ├── DelegateInvoke │ │ ├── DelegateInvokeAnalyzerTests.cs │ │ ├── DelegateInvokeQuickFixAvailabilityTests.cs │ │ └── DelegateInvokeQuickFixTests.cs │ ├── InterfaceImplementation │ │ └── InterfaceImplementationAnalyzerTests.cs │ ├── InternalConstructor │ │ ├── InternalConstructorAnalyzerTests.cs │ │ ├── InternalConstructorQuickFixAvailabilityTests.cs │ │ └── InternalConstructorQuickFixTests.cs │ ├── Linq │ │ ├── LinqAnalyzerTests.cs │ │ ├── UseIndexerQuickFixTests.cs │ │ ├── UseLinqQuickFixAvailabilityTests.cs │ │ ├── UseListPatternQuickFixTests.cs │ │ ├── UsePropertyQuickFixTests.cs │ │ └── UseSwitchExpressionQuickFixTests.cs │ ├── LocalSuppression │ │ └── LocalSuppressionAnalyzerTests.cs │ ├── LockOnObjectWithWeakIdentity │ │ └── LockOnObjectWithWeakIdentityAnalyzerTests.cs │ ├── NotifyPropertyChangedInvocatorFromConstructor │ │ ├── NotifyPropertyChangedInvocatorFromConstructorAnalyzerTests.cs │ │ ├── NotifyPropertyChangedInvocatorFromConstructorQuickFixAvailabilityTests.cs │ │ └── NotifyPropertyChangedInvocatorFromConstructorQuickFixTests.cs │ ├── Region │ │ └── RegionAnalyzerTests.cs │ ├── StringBuilder │ │ ├── PassSingleCharacterQuickFixTests.cs │ │ ├── PassSingleCharactersQuickFixTests.cs │ │ ├── RemoveArgumentQuickFixTests.cs │ │ ├── RemoveMethodInvocationFixTests.cs │ │ ├── StringBuilderAnalyzerTests.cs │ │ ├── UseOtherMethodQuickFixTests.cs │ │ └── UseStringBuilderQuickFixAvailabilityTests.cs │ ├── Strings │ │ ├── PassSingleCharacterQuickFixTests.cs │ │ ├── PassSingleCharactersQuickFixTests.cs │ │ ├── RemoveArgumentQuickFixTests.cs │ │ ├── RemoveElementQuickFixTests.cs │ │ ├── RemoveMethodInvocationFixTests.cs │ │ ├── StringAnalyzerTests.cs │ │ ├── UseExpressionResultQuickFixTests.cs │ │ ├── UseListPatternQuickFixTests.cs │ │ ├── UseOtherMethodQuickFixTests.cs │ │ ├── UseRangeIndexerFixTests.cs │ │ ├── UseStringPropertyQuickFixTests.cs │ │ └── UseStringQuickFixAvailabilityTests.cs │ ├── ThrowExceptionInUnexpectedLocation │ │ └── ThrowExceptionInUnexpectedLocationAnalyzerTests.cs │ ├── UncatchableException │ │ └── UncatchableExceptionAnalyzerTests.cs │ ├── UnthrowableException │ │ └── UnthrowableExceptionAnalyzerTests.cs │ ├── ValueTask │ │ ├── ValueTaskAnalyzerTests.cs │ │ ├── ValueTaskQuickFixAvailabilityTests.cs │ │ └── ValueTaskQuickFixTests.cs │ ├── XamlBindingWithoutMode │ │ └── XamlBindingWithoutMode.cs │ └── YieldReturnWithinLock │ │ └── YieldReturnWithinLockAnalyzerTests.cs ├── AssemblyTests.cs ├── ContextActions │ ├── Annotations │ │ ├── AnnotateWithAttributeUsageAvailabilityTests.cs │ │ ├── AnnotateWithAttributeUsageExecuteTests.cs │ │ ├── AnnotateWithDefaultEqualityUsageAvailabilityTests.cs │ │ ├── AnnotateWithDefaultEqualityUsageExecuteTests.cs │ │ ├── AnnotateWithHandlesResourceDisposalAvailabilityTests.cs │ │ ├── AnnotateWithHandlesResourceDisposalExecuteTests.cs │ │ ├── AnnotateWithIgnoreSpellingAndGrammarErrorsAvailabilityTests.cs │ │ ├── AnnotateWithIgnoreSpellingAndGrammarErrorsExecuteTests.cs │ │ ├── AnnotateWithInstantHandleAvailabilityTests.cs │ │ ├── AnnotateWithInstantHandleExecuteTests.cs │ │ ├── AnnotateWithItemNotNullAvailabilityTests.cs │ │ ├── AnnotateWithItemNotNullExecuteTests.cs │ │ ├── AnnotateWithLinqTunnelAvailabilityTests.cs │ │ ├── AnnotateWithLinqTunnelExecuteTests.cs │ │ ├── AnnotateWithMustDisposeResourceAvailabilityTests.cs │ │ ├── AnnotateWithMustDisposeResourceExecuteTests.cs │ │ ├── AnnotateWithMustDisposeResourceFalseAvailabilityTests.cs │ │ ├── AnnotateWithMustDisposeResourceFalseExecuteTests.cs │ │ ├── AnnotateWithMustUseReturnValueAvailabilityTests.cs │ │ ├── AnnotateWithMustUseReturnValueExecuteTests.cs │ │ ├── AnnotateWithNonNegativeValueAvailabilityTests.cs │ │ ├── AnnotateWithNonNegativeValueExecuteTests.cs │ │ ├── AnnotateWithPureAvailabilityTests.cs │ │ ├── AnnotateWithPureExecuteTests.cs │ │ ├── AnnotateWithValueRangeAvailabilityTests.cs │ │ └── AnnotateWithValueRangeExecuteTests.cs │ ├── CodeContracts │ │ ├── Elements │ │ │ ├── FieldAvailabilityTests.cs │ │ │ ├── FieldExecuteTests.cs │ │ │ ├── MethodAvailabilityTests.cs │ │ │ ├── MethodExecuteTests.cs │ │ │ ├── OperatorAvailabilityTests.cs │ │ │ ├── OperatorExecuteTests.cs │ │ │ ├── ParameterAvailabilityTests.cs │ │ │ ├── ParameterExecuteTests.cs │ │ │ ├── PropertyAvailabilityTests.cs │ │ │ └── PropertyExecuteTests.cs │ │ └── Types │ │ │ ├── CollectionAllItemsNotNullAvailabilityTests.cs │ │ │ ├── CollectionAllItemsNotNullExecuteTests.cs │ │ │ ├── CollectionCountPositiveAvailabilityTests.cs │ │ │ ├── CollectionCountPositiveExecuteTests.cs │ │ │ ├── DateTimeTimeOfDayZeroAvailabilityTests.cs │ │ │ ├── DateTimeTimeOfDayZeroExecuteTests.cs │ │ │ ├── EnumBetweenFirstAndLastAvailabilityTests.cs │ │ │ ├── EnumBetweenFirstAndLastExecuteTests.cs │ │ │ ├── EnumFlagsAvailabilityTests.cs │ │ │ ├── EnumFlagsExecuteTests.cs │ │ │ ├── EnumKnownValuesAvailabilityTests.cs │ │ │ ├── EnumKnownValuesExecuteTests.cs │ │ │ ├── GuidNonEmptyAvailabilityTests.cs │ │ │ ├── GuidNonEmptyExecuteTests.cs │ │ │ ├── IntPtrUIntPtrNonZeroAvailabilityTests.cs │ │ │ ├── IntPtrUIntPtrNonZeroExecuteTests.cs │ │ │ ├── IntPtrUIntPtrZeroAvailabilityTests.cs │ │ │ ├── IntPtrUIntPtrZeroExecuteTests.cs │ │ │ ├── NotNullAvailabilityTests.cs │ │ │ ├── NotNullExecuteTests.cs │ │ │ ├── NumericPositiveAvailabilityTests.cs │ │ │ ├── NumericPositiveExecuteTests.cs │ │ │ ├── NumericZeroAvailabilityTests.cs │ │ │ ├── NumericZeroExecuteTests.cs │ │ │ ├── SignedNumericNegativeAvailabilityTests.cs │ │ │ ├── SignedNumericNegativeExecuteTests.cs │ │ │ ├── SignedNumericNonZeroAvailabilityTests.cs │ │ │ ├── SignedNumericNonZeroExecuteTests.cs │ │ │ ├── SignedNumericZeroOrNegativeAvailabilityTests.cs │ │ │ ├── SignedNumericZeroOrNegativeExecuteTests.cs │ │ │ ├── SignedNumericZeroOrPositiveAvailabilityTests.cs │ │ │ ├── SignedNumericZeroOrPositiveExecuteTests.cs │ │ │ ├── StringNotNullAndNotEmptyAvailabilityTests.cs │ │ │ ├── StringNotNullAndNotEmptyExecuteTests.cs │ │ │ ├── TimeSpanNegativeAvailabilityTests.cs │ │ │ ├── TimeSpanNegativeExecuteTests.cs │ │ │ ├── TimeSpanNonZeroAvailabilityTests.cs │ │ │ ├── TimeSpanNonZeroExecuteTests.cs │ │ │ ├── TimeSpanPositiveAvailabilityTests.cs │ │ │ ├── TimeSpanPositiveExecuteTests.cs │ │ │ ├── TimeSpanZeroAvailabilityTests.cs │ │ │ ├── TimeSpanZeroExecuteTests.cs │ │ │ ├── TimeSpanZeroOrNegativeAvailabilityTests.cs │ │ │ ├── TimeSpanZeroOrNegativeExecuteTests.cs │ │ │ ├── TimeSpanZeroOrPositiveAvailabilityTests.cs │ │ │ └── TimeSpanZeroOrPositiveExecuteTests.cs │ ├── DocComments │ │ ├── DocCommentsExecuteTests[A].cs │ │ ├── EmbedIntoParamrefNameAvailabilityTests.cs │ │ ├── EmbedIntoParamrefNameExecuteTests.cs │ │ ├── EmbedIntoSeeCRefAvailabilityTests.cs │ │ ├── EmbedIntoSeeCRefExecuteTests.cs │ │ ├── EmbedIntoTypeparamrefNameAvailabilityTests.cs │ │ ├── EmbedIntoTypeparamrefNameExecuteTests.cs │ │ ├── EmbraceWithCTagsAvailabilityTests.cs │ │ ├── EmbraceWithCTagsExecuteTests.cs │ │ ├── ReflowDocCommentsAvailabilityTests.cs │ │ └── ReflowDocCommentsExecuteTests.cs │ ├── InterfaceImplementationDeclarations │ │ ├── DeclareComparisonOperatorsAvailabilityTests.cs │ │ ├── DeclareComparisonOperatorsExecuteTests.cs │ │ ├── DeclareEqualityOperatorsAvailabilityTests.cs │ │ └── DeclareEqualityOperatorsExecuteTests.cs │ ├── RemoveAssertNotNullAvailabilityTests.cs │ ├── RemoveAssertNotNullExecuteTests.cs │ ├── SetLanguageInjectionAvailabilityTests.cs │ ├── SetLanguageInjectionExecuteTests.cs │ ├── Strings │ │ ├── ReplaceIsNullOrEmptyWithNegatedListPatternAvailabilityTests.cs │ │ ├── ReplaceIsNullOrEmptyWithNegatedListPatternExecuteTests.cs │ │ ├── ReplaceIsNullOrEmptyWithNegatedObjectAvailabilityTests.cs │ │ ├── ReplaceIsNullOrEmptyWithNegatedObjectExecuteTests.cs │ │ ├── ReplaceIsNullOrEmptyWithNegatedObjectOrEmptyAvailabilityTests.cs │ │ ├── ReplaceIsNullOrEmptyWithNegatedObjectOrEmptyExecuteTests.cs │ │ ├── ReplaceIsNullOrEmptyWithNegatedObjectOrEmptyListAvailabilityTests.cs │ │ ├── ReplaceIsNullOrEmptyWithNegatedObjectOrEmptyListExecuteTests.cs │ │ ├── ReplaceIsNullOrEmptyWithNullOrEmptyAvailabilityTests.cs │ │ ├── ReplaceIsNullOrEmptyWithNullOrEmptyExecuteTests.cs │ │ ├── ReplaceIsNullOrEmptyWithNullOrEmptyListAvailabilityTests.cs │ │ └── ReplaceIsNullOrEmptyWithNullOrEmptyListExecuteTests.cs │ ├── ToggleReturnTypeOfAsyncMethodsAvailabilityTests.cs │ └── ToggleReturnTypeOfAsyncMethodsExecuteTests.cs ├── MissingEnumerableMethods.cs ├── MissingStringBuilderMethods.cs ├── MissingStringMethods.cs ├── MissingStringSplitOptions.cs ├── ReCommendedExtension.Tests.csproj ├── TestEnvironmentAssembly.cs ├── Zone.cs └── test │ ├── data │ ├── Analyzers │ │ ├── Annotation │ │ │ ├── AsyncIteratorMethod.cs │ │ │ ├── AsyncIteratorMethod.cs.gold │ │ │ ├── AsyncMethod.cs │ │ │ ├── AsyncMethod.cs.gold │ │ │ ├── AttributeUsage.cs │ │ │ ├── AttributeUsage.cs.gold │ │ │ ├── Conditional.cs │ │ │ ├── Conditional.cs.gold │ │ │ ├── DisposalHandling_Fields.cs │ │ │ ├── DisposalHandling_Fields.cs.gold │ │ │ ├── DisposalHandling_Methods.cs │ │ │ ├── DisposalHandling_Methods.cs.gold │ │ │ ├── DisposalHandling_Parameters.cs │ │ │ ├── DisposalHandling_Parameters.cs.gold │ │ │ ├── DisposalHandling_Properties.cs │ │ │ ├── DisposalHandling_Properties.cs.gold │ │ │ ├── ItemNotNull.cs │ │ │ ├── ItemNotNull.cs.gold │ │ │ ├── IteratorMethod.cs │ │ │ ├── IteratorMethod.cs.gold │ │ │ ├── NonNegativeValue.cs │ │ │ ├── NonNegativeValue.cs.gold │ │ │ ├── NullableAnnotationContext.cs │ │ │ ├── NullableAnnotationContext.cs.gold │ │ │ ├── Other_Optimistic.cs │ │ │ ├── Other_Optimistic.cs.gold │ │ │ ├── Other_Pessimistic.cs │ │ │ ├── Other_Pessimistic.cs.gold │ │ │ ├── Override.cs │ │ │ ├── Override.cs.gold │ │ │ ├── PurityAndDisposability_Constructors.cs │ │ │ ├── PurityAndDisposability_Constructors.cs.gold │ │ │ ├── PurityAndDisposability_DisposableOverride.cs │ │ │ ├── PurityAndDisposability_DisposableOverride.cs.gold │ │ │ ├── PurityAndDisposability_LocalFunctions.cs │ │ │ ├── PurityAndDisposability_LocalFunctions.cs.gold │ │ │ ├── PurityAndDisposability_Methods.cs │ │ │ ├── PurityAndDisposability_Methods.cs.gold │ │ │ ├── PurityAndDisposability_Parameters.cs │ │ │ ├── PurityAndDisposability_Parameters.cs.gold │ │ │ ├── PurityAndDisposability_PrimaryConstructors.cs │ │ │ ├── PurityAndDisposability_PrimaryConstructors.cs.gold │ │ │ ├── PurityAndDisposability_Types.cs │ │ │ ├── PurityAndDisposability_Types.cs.gold │ │ │ ├── RedundantAnnotationArgument.cs │ │ │ ├── RedundantAnnotationArgument.cs.gold │ │ │ ├── RedundantNullableAnnotations.cs │ │ │ ├── RedundantNullableAnnotations.cs.gold │ │ │ ├── SuppressMessage.cs │ │ │ ├── SuppressMessage.cs.gold │ │ │ ├── SuppressMessage_NET_5.cs │ │ │ ├── SuppressMessage_NET_5.cs.gold │ │ │ ├── SuppressMessage_TestProject.cs │ │ │ ├── SuppressMessage_TestProject.cs.gold │ │ │ ├── SuppressMessage_TestProject_NET_5.cs │ │ │ ├── SuppressMessage_TestProject_NET_5.cs.gold │ │ │ ├── ValueRange.cs │ │ │ ├── ValueRange.cs.gold │ │ │ ├── WithoutAnnotations_Optimistic.cs │ │ │ ├── WithoutAnnotations_Optimistic.cs.gold │ │ │ ├── WithoutAnnotations_Pessimistic.cs │ │ │ └── WithoutAnnotations_Pessimistic.cs.gold │ │ ├── AnnotationQuickFixes │ │ │ ├── AnnotationAvailability.cs │ │ │ ├── AnnotationAvailability.cs.gold │ │ │ ├── CoerceHigherBoundary.cs │ │ │ ├── CoerceHigherBoundary.cs.gold │ │ │ ├── CoerceLowerBoundaryForSignedType.cs │ │ │ ├── CoerceLowerBoundaryForSignedType.cs.gold │ │ │ ├── CoerceLowerBoundaryForUnsignedType.cs │ │ │ ├── CoerceLowerBoundaryForUnsignedType.cs.gold │ │ │ ├── CoerceValueRangeBoundaryAvailability.cs │ │ │ ├── CoerceValueRangeBoundaryAvailability.cs.gold │ │ │ ├── Conflicting.cs │ │ │ ├── Conflicting.cs.gold │ │ │ ├── NotAllowed.cs │ │ │ ├── NotAllowed.cs.gold │ │ │ ├── Redundant.cs │ │ │ ├── Redundant.cs.gold │ │ │ ├── RedundantAnnotationArgument.cs │ │ │ ├── RedundantAnnotationArgument.cs.gold │ │ │ ├── RedundantAnnotationArgumentAvailability.cs │ │ │ ├── RedundantAnnotationArgumentAvailability.cs.gold │ │ │ ├── RedundantNullableAnnotation.cs │ │ │ ├── RedundantNullableAnnotation.cs.gold │ │ │ ├── RedundantNullableAnnotationAvailability.cs │ │ │ └── RedundantNullableAnnotationAvailability.cs.gold │ │ ├── ArgumentExceptionConstructorArgument │ │ │ ├── ArgumentExceptionConstructorArgument.cs │ │ │ └── ArgumentExceptionConstructorArgument.cs.gold │ │ ├── AsyncVoid │ │ │ ├── AnonymousMethod.cs │ │ │ ├── AnonymousMethod.cs.gold │ │ │ ├── AsyncVoidMethod.cs │ │ │ ├── AsyncVoidMethod.cs.gold │ │ │ ├── AsyncVoidMethodXBind.cs │ │ │ ├── AsyncVoidMethodXBind.cs.gold │ │ │ ├── LambdaExpression.cs │ │ │ └── LambdaExpression.cs.gold │ │ ├── AsyncVoidQuickFixes │ │ │ ├── AnonymousMethod.cs │ │ │ ├── AnonymousMethod.cs.gold │ │ │ ├── AnonymousMethodAvailability.cs │ │ │ ├── AnonymousMethodAvailability.cs.gold │ │ │ ├── AsyncVoidLocalFunction.cs │ │ │ ├── AsyncVoidLocalFunction.cs.gold │ │ │ ├── AsyncVoidLocalFunctionAvailability.cs │ │ │ ├── AsyncVoidLocalFunctionAvailability.cs.gold │ │ │ ├── AsyncVoidMethod.cs │ │ │ ├── AsyncVoidMethod.cs.gold │ │ │ ├── AsyncVoidMethodAvailability.cs │ │ │ ├── AsyncVoidMethodAvailability.cs.gold │ │ │ ├── LambdaExpression.cs │ │ │ ├── LambdaExpression.cs.gold │ │ │ ├── LambdaExpressionAvailability.cs │ │ │ └── LambdaExpressionAvailability.cs.gold │ │ ├── Await │ │ │ ├── RedundantCapturedContext.cs │ │ │ ├── RedundantCapturedContext.cs.gold │ │ │ ├── RedundantCapturedContext_IAsyncTypes.cs │ │ │ ├── RedundantCapturedContext_IAsyncTypes.cs.gold │ │ │ ├── RedundantCapturedContext_LibraryMode.cs │ │ │ ├── RedundantCapturedContext_LibraryMode.cs.gold │ │ │ ├── RedundantCapturedContext_NET_8.cs │ │ │ ├── RedundantCapturedContext_NET_8.cs.gold │ │ │ ├── RedundantCapturedContext_ReturnValueTask.cs │ │ │ ├── RedundantCapturedContext_ReturnValueTask.cs.gold │ │ │ ├── RedundantCapturedContext_ValueTask.cs │ │ │ ├── RedundantCapturedContext_ValueTask.cs.gold │ │ │ ├── RedundantCapturedContext_ValueTask_NET_8.cs │ │ │ ├── RedundantCapturedContext_ValueTask_NET_8.cs.gold │ │ │ ├── RedundantCapturedContext_ValueTask_ReturnTask.cs │ │ │ └── RedundantCapturedContext_ValueTask_ReturnTask.cs.gold │ │ ├── BaseType │ │ │ ├── BaseTypes.cs │ │ │ └── BaseTypes.cs.gold │ │ ├── BaseTypeQuickFixes │ │ │ ├── Availability.cs │ │ │ ├── Availability.cs.gold │ │ │ ├── Class.cs │ │ │ ├── Class.cs.gold │ │ │ ├── Class_Empty.cs │ │ │ ├── Class_Empty.cs.gold │ │ │ ├── Class_Interface.cs │ │ │ ├── Class_Interface.cs.gold │ │ │ ├── Class_NonEmpty.cs │ │ │ ├── Class_NonEmpty.cs.gold │ │ │ ├── Class_PrimaryConstructor.cs │ │ │ ├── Class_PrimaryConstructor.cs.gold │ │ │ ├── Record_Interface.cs │ │ │ └── Record_Interface.cs.gold │ │ ├── CatchClauseWithoutVariable │ │ │ ├── CatchClauseWithoutVariable.cs │ │ │ └── CatchClauseWithoutVariable.cs.gold │ │ ├── CatchClauseWithoutVariableQuickFixes │ │ │ ├── CatchClauseWithoutVariable.cs │ │ │ ├── CatchClauseWithoutVariable.cs.gold │ │ │ ├── CatchClauseWithoutVariable2.cs │ │ │ ├── CatchClauseWithoutVariable2.cs.gold │ │ │ ├── CatchClauseWithoutVariableAvailability.cs │ │ │ └── CatchClauseWithoutVariableAvailability.cs.gold │ │ ├── Collection │ │ │ ├── ArrayWithDefaultValuesInitialization.cs │ │ │ ├── ArrayWithDefaultValuesInitialization.cs.gold │ │ │ ├── ArrayWithDefaultValuesInitializationWithNullableAnnotations.cs │ │ │ ├── ArrayWithDefaultValuesInitializationWithNullableAnnotations.cs.gold │ │ │ ├── ArrayWithDefaultValuesInitialization_CS12.cs │ │ │ ├── ArrayWithDefaultValuesInitialization_CS12.cs.gold │ │ │ ├── ArrayWithDefaultValuesInitialization_ParameterlessCtor.cs │ │ │ ├── ArrayWithDefaultValuesInitialization_ParameterlessCtor.cs.gold │ │ │ ├── ArrayWithDefaultValuesInitialization_TargetTyped.cs │ │ │ ├── ArrayWithDefaultValuesInitialization_TargetTyped.cs.gold │ │ │ ├── CollectionExpressionWithDefaultValuesInitialization.cs │ │ │ ├── CollectionExpressionWithDefaultValuesInitialization.cs.gold │ │ │ ├── CollectionInitialization_Array_NonTargetTyped.cs │ │ │ ├── CollectionInitialization_Array_NonTargetTyped.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_Array.cs │ │ │ ├── CollectionInitialization_Array_Target_Array.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_ICollection.cs │ │ │ ├── CollectionInitialization_Array_Target_ICollection.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_IEnumerable.cs │ │ │ ├── CollectionInitialization_Array_Target_IEnumerable.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_IList.cs │ │ │ ├── CollectionInitialization_Array_Target_IList.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_IReadOnlyCollection.cs │ │ │ ├── CollectionInitialization_Array_Target_IReadOnlyCollection.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_IReadOnlyList.cs │ │ │ ├── CollectionInitialization_Array_Target_IReadOnlyList.cs.gold │ │ │ ├── CollectionInitialization_Dictionary_NonTargetTyped.cs │ │ │ ├── CollectionInitialization_Dictionary_NonTargetTyped.cs.gold │ │ │ ├── CollectionInitialization_Dictionary_Target_Dictionary.cs │ │ │ ├── CollectionInitialization_Dictionary_Target_Dictionary.cs.gold │ │ │ ├── CollectionInitialization_HashSet_NonTargetTyped.cs │ │ │ ├── CollectionInitialization_HashSet_NonTargetTyped.cs.gold │ │ │ ├── CollectionInitialization_HashSet_Target_HashSet.cs │ │ │ ├── CollectionInitialization_HashSet_Target_HashSet.cs.gold │ │ │ ├── CollectionInitialization_HashSet_Target_IEnumerable.cs │ │ │ ├── CollectionInitialization_HashSet_Target_IEnumerable.cs.gold │ │ │ ├── CollectionInitialization_HashSet_Target_IReadOnlyCollection.cs │ │ │ ├── CollectionInitialization_HashSet_Target_IReadOnlyCollection.cs.gold │ │ │ ├── CollectionInitialization_ItemTypes.cs │ │ │ ├── CollectionInitialization_ItemTypes.cs.gold │ │ │ ├── CollectionInitialization_List_NonTargetTyped.cs │ │ │ ├── CollectionInitialization_List_NonTargetTyped.cs.gold │ │ │ ├── CollectionInitialization_List_Target_ICollection.cs │ │ │ ├── CollectionInitialization_List_Target_ICollection.cs.gold │ │ │ ├── CollectionInitialization_List_Target_IEnumerable.cs │ │ │ ├── CollectionInitialization_List_Target_IEnumerable.cs.gold │ │ │ ├── CollectionInitialization_List_Target_IList.cs │ │ │ ├── CollectionInitialization_List_Target_IList.cs.gold │ │ │ ├── CollectionInitialization_List_Target_IReadOnlyCollection.cs │ │ │ ├── CollectionInitialization_List_Target_IReadOnlyCollection.cs.gold │ │ │ ├── CollectionInitialization_List_Target_IReadOnlyList.cs │ │ │ ├── CollectionInitialization_List_Target_IReadOnlyList.cs.gold │ │ │ ├── CollectionInitialization_List_Target_List.cs │ │ │ ├── CollectionInitialization_List_Target_List.cs.gold │ │ │ ├── CollectionInitialization_Other_NonTargetTyped.cs │ │ │ ├── CollectionInitialization_Other_NonTargetTyped.cs.gold │ │ │ ├── CollectionInitialization_Other_Target_Other.cs │ │ │ ├── CollectionInitialization_Other_Target_Other.cs.gold │ │ │ ├── EmptyArrayInitialization.cs │ │ │ ├── EmptyArrayInitialization.cs.gold │ │ │ ├── EmptyArrayInitialization_CS12.cs │ │ │ └── EmptyArrayInitialization_CS12.cs.gold │ │ ├── CollectionQuickFixes │ │ │ ├── ArrayWithDefaultValuesInitialization.cs │ │ │ ├── ArrayWithDefaultValuesInitialization.cs.gold │ │ │ ├── ArrayWithDefaultValuesInitialization2.cs │ │ │ ├── ArrayWithDefaultValuesInitialization2.cs.gold │ │ │ ├── ArrayWithDefaultValuesInitialization3.cs │ │ │ ├── ArrayWithDefaultValuesInitialization3.cs.gold │ │ │ ├── ArrayWithDefaultValuesInitialization4.cs │ │ │ ├── ArrayWithDefaultValuesInitialization4.cs.gold │ │ │ ├── ArrayWithDefaultValuesInitialization5.cs │ │ │ ├── ArrayWithDefaultValuesInitialization5.cs.gold │ │ │ ├── ArrayWithDefaultValuesInitialization6.cs │ │ │ ├── ArrayWithDefaultValuesInitialization6.cs.gold │ │ │ ├── ArrayWithDefaultValuesInitialization7.cs │ │ │ ├── ArrayWithDefaultValuesInitialization7.cs.gold │ │ │ ├── ArrayWithDefaultValuesInitializationAvailability.cs │ │ │ ├── ArrayWithDefaultValuesInitializationAvailability.cs.gold │ │ │ ├── ArrayWithDefaultValuesInitializationAvailabilityWithNullableAnnotations.cs │ │ │ ├── ArrayWithDefaultValuesInitializationAvailabilityWithNullableAnnotations.cs.gold │ │ │ ├── ArrayWithDefaultValuesInitializationAvailabilityWithNullableAnnotations_CS12.cs │ │ │ ├── ArrayWithDefaultValuesInitializationAvailabilityWithNullableAnnotations_CS12.cs.gold │ │ │ ├── ArrayWithDefaultValuesInitializationAvailability_CS12.cs │ │ │ ├── ArrayWithDefaultValuesInitializationAvailability_CS12.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_Array_Availability.cs │ │ │ ├── CollectionInitialization_Array_Target_Array_Availability.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_Array_Field.cs │ │ │ ├── CollectionInitialization_Array_Target_Array_Field.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_Array_GenericMethodArgument_InferredTypeArguments_1.cs │ │ │ ├── CollectionInitialization_Array_Target_Array_GenericMethodArgument_InferredTypeArguments_1.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_Array_GenericMethodArgument_InferredTypeArguments_2.cs │ │ │ ├── CollectionInitialization_Array_Target_Array_GenericMethodArgument_InferredTypeArguments_2.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_Array_GenericMethodArgument_InferredTypeArguments_3.cs │ │ │ ├── CollectionInitialization_Array_Target_Array_GenericMethodArgument_InferredTypeArguments_3.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_Array_MethodArgument.cs │ │ │ ├── CollectionInitialization_Array_Target_Array_MethodArgument.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_IEnumerable_Availability.cs │ │ │ ├── CollectionInitialization_Array_Target_IEnumerable_Availability.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_IEnumerable_Field.cs │ │ │ ├── CollectionInitialization_Array_Target_IEnumerable_Field.cs.gold │ │ │ ├── CollectionInitialization_Array_Target_IEnumerable_GenericMethodArgument.cs │ │ │ ├── CollectionInitialization_Array_Target_IEnumerable_GenericMethodArgument.cs.gold │ │ │ ├── CollectionInitialization_Dictionary_Target_Dictionary_Field.cs │ │ │ ├── CollectionInitialization_Dictionary_Target_Dictionary_Field.cs.gold │ │ │ ├── CollectionInitialization_Dictionary_Target_Dictionary_GenericMethodArgument_InferredTypeArguments.cs │ │ │ ├── CollectionInitialization_Dictionary_Target_Dictionary_GenericMethodArgument_InferredTypeArguments.cs.gold │ │ │ ├── CollectionInitialization_Dictionary_Target_Dictionary_MethodArgument.cs │ │ │ ├── CollectionInitialization_Dictionary_Target_Dictionary_MethodArgument.cs.gold │ │ │ ├── CollectionInitialization_Dictionary_Target_Dictionary_Property.cs │ │ │ ├── CollectionInitialization_Dictionary_Target_Dictionary_Property.cs.gold │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_Field.cs │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_Field.cs.gold │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_Field_Empty_1.cs │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_Field_Empty_1.cs.gold │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_Field_Empty_2.cs │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_Field_Empty_2.cs.gold │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_GenericMethodArgument.cs │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_GenericMethodArgument.cs.gold │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_GenericMethodArgument_InferredTypeArguments.cs │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_GenericMethodArgument_InferredTypeArguments.cs.gold │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_GenericMethodArgument_NoInferredTypeArguments.cs │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_GenericMethodArgument_NoInferredTypeArguments.cs.gold │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_Variable_1.cs │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_Variable_1.cs.gold │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_Variable_2.cs │ │ │ ├── CollectionInitialization_List_Target_IEnumerable_Variable_2.cs.gold │ │ │ ├── EmptyArrayInitialization.cs │ │ │ ├── EmptyArrayInitialization.cs.gold │ │ │ ├── EmptyArrayInitialization2.cs │ │ │ ├── EmptyArrayInitialization2.cs.gold │ │ │ ├── EmptyArrayInitialization3.cs │ │ │ ├── EmptyArrayInitialization3.cs.gold │ │ │ ├── EmptyArrayInitialization4.cs │ │ │ ├── EmptyArrayInitialization4.cs.gold │ │ │ ├── EmptyArrayInitializationAvailability.cs │ │ │ └── EmptyArrayInitializationAvailability.cs.gold │ │ ├── ConditionalInvocation │ │ │ ├── Conditional.cs │ │ │ └── Conditional.cs.gold │ │ ├── ControlFlow │ │ │ ├── ControlFlow.cs │ │ │ ├── ControlFlow.cs.gold │ │ │ ├── ControlFlow_NullableContext.cs │ │ │ └── ControlFlow_NullableContext.cs.gold │ │ ├── ControlFlowQuickFixes │ │ │ ├── ControlFlowAvailability.cs │ │ │ ├── ControlFlowAvailability.cs.gold │ │ │ ├── RemoveAssertionStatement.cs │ │ │ └── RemoveAssertionStatement.cs.gold │ │ ├── DelegateInvoke │ │ │ ├── DelegateInvoke.cs │ │ │ └── DelegateInvoke.cs.gold │ │ ├── DelegateInvokeQuickFixes │ │ │ ├── DelegateInvoke.cs │ │ │ ├── DelegateInvoke.cs.gold │ │ │ ├── DelegateInvoke2.cs │ │ │ ├── DelegateInvoke2.cs.gold │ │ │ ├── DelegateInvokeAvailability.cs │ │ │ └── DelegateInvokeAvailability.cs.gold │ │ ├── InterfaceImplementation │ │ │ ├── ComparableTypes.cs │ │ │ ├── ComparableTypes.cs.gold │ │ │ ├── ComparableTypes_CS10.cs │ │ │ ├── ComparableTypes_CS10.cs.gold │ │ │ ├── ComparableTypes_NET_6.cs │ │ │ ├── ComparableTypes_NET_6.cs.gold │ │ │ ├── EquatableTypes.cs │ │ │ ├── EquatableTypes.cs.gold │ │ │ ├── EquatableTypes_CS10.cs │ │ │ ├── EquatableTypes_CS10.cs.gold │ │ │ ├── EquatableTypes_NET_6.cs │ │ │ ├── EquatableTypes_NET_6.cs.gold │ │ │ ├── ImplementedEquals.cs │ │ │ ├── ImplementedEquals.cs.gold │ │ │ ├── OverriddenEquals.cs │ │ │ ├── OverriddenEquals.cs.gold │ │ │ ├── PartialTypes.cs │ │ │ └── PartialTypes.cs.gold │ │ ├── InternalConstructor │ │ │ ├── InternalConstructor.cs │ │ │ └── InternalConstructor.cs.gold │ │ ├── InternalConstructorQuickFixes │ │ │ ├── InternalConstructorAvailability.cs │ │ │ ├── InternalConstructorAvailability.cs.gold │ │ │ ├── InternalConstructorToPrivateProtected.cs │ │ │ ├── InternalConstructorToPrivateProtected.cs.gold │ │ │ ├── InternalConstructorToProtected.cs │ │ │ └── InternalConstructorToProtected.cs.gold │ │ ├── Linq │ │ │ ├── ElementAt.cs │ │ │ ├── ElementAt.cs.gold │ │ │ ├── ElementAtOrDefault.cs │ │ │ ├── ElementAtOrDefault.cs.gold │ │ │ ├── First.cs │ │ │ ├── First.cs.gold │ │ │ ├── FirstOrDefault.cs │ │ │ ├── FirstOrDefault.cs.gold │ │ │ ├── Last.cs │ │ │ ├── Last.cs.gold │ │ │ ├── LastOrDefault.cs │ │ │ ├── LastOrDefault.cs.gold │ │ │ ├── LongCount.cs │ │ │ ├── LongCount.cs.gold │ │ │ ├── Single.cs │ │ │ ├── Single.cs.gold │ │ │ ├── SingleOrDefault.cs │ │ │ └── SingleOrDefault.cs.gold │ │ ├── LinqQuickFixes │ │ │ ├── UseIndexerAvailability.cs │ │ │ ├── UseIndexerAvailability.cs.gold │ │ │ ├── UseIndexer_ElementAt_Index.cs │ │ │ ├── UseIndexer_ElementAt_Index.cs.gold │ │ │ ├── UseIndexer_ElementAt_Index_Nullable.cs │ │ │ ├── UseIndexer_ElementAt_Index_Nullable.cs.gold │ │ │ ├── UseIndexer_ElementAt_Int32.cs │ │ │ ├── UseIndexer_ElementAt_Int32.cs.gold │ │ │ ├── UseIndexer_ElementAt_Int32_Nullable.cs │ │ │ ├── UseIndexer_ElementAt_Int32_Nullable.cs.gold │ │ │ ├── UseIndexer_First.cs │ │ │ ├── UseIndexer_First.cs.gold │ │ │ ├── UseIndexer_First_Nullable.cs │ │ │ ├── UseIndexer_First_Nullable.cs.gold │ │ │ ├── UseIndexer_Last.cs │ │ │ ├── UseIndexer_Last.cs.gold │ │ │ ├── UseIndexer_Last_Nullable.cs │ │ │ ├── UseIndexer_Last_Nullable.cs.gold │ │ │ ├── UseListPatternAvailability.cs │ │ │ ├── UseListPatternAvailability.cs.gold │ │ │ ├── UseListPattern_FirstOrDefault.cs │ │ │ ├── UseListPattern_FirstOrDefault.cs.gold │ │ │ ├── UseListPattern_FirstOrDefault_DefaultValue.cs │ │ │ ├── UseListPattern_FirstOrDefault_DefaultValue.cs.gold │ │ │ ├── UseListPattern_FirstOrDefault_DefaultValue_Parenthesized.cs │ │ │ ├── UseListPattern_FirstOrDefault_DefaultValue_Parenthesized.cs.gold │ │ │ ├── UseListPattern_FirstOrDefault_Parenthesized.cs │ │ │ ├── UseListPattern_FirstOrDefault_Parenthesized.cs.gold │ │ │ ├── UseListPattern_LastOrDefault.cs │ │ │ ├── UseListPattern_LastOrDefault.cs.gold │ │ │ ├── UseListPattern_LastOrDefault_DefaultValue.cs │ │ │ ├── UseListPattern_LastOrDefault_DefaultValue.cs.gold │ │ │ ├── UseListPattern_LastOrDefault_DefaultValue_Parenthesized.cs │ │ │ ├── UseListPattern_LastOrDefault_DefaultValue_Parenthesized.cs.gold │ │ │ ├── UseListPattern_LastOrDefault_Parenthesized.cs │ │ │ ├── UseListPattern_LastOrDefault_Parenthesized.cs.gold │ │ │ ├── UseListPattern_Single.cs │ │ │ ├── UseListPattern_Single.cs.gold │ │ │ ├── UseListPattern_Single_Parenthesized.cs │ │ │ ├── UseListPattern_Single_Parenthesized.cs.gold │ │ │ ├── UsePropertyAvailability.cs │ │ │ ├── UsePropertyAvailability.cs.gold │ │ │ ├── UseProperty_Array.cs │ │ │ ├── UseProperty_Array.cs.gold │ │ │ ├── UseProperty_Array_Nullable.cs │ │ │ ├── UseProperty_Array_Nullable.cs.gold │ │ │ ├── UseProperty_Collection.cs │ │ │ ├── UseProperty_Collection.cs.gold │ │ │ ├── UseProperty_Collection_Nullable.cs │ │ │ ├── UseProperty_Collection_Nullable.cs.gold │ │ │ ├── UseProperty_String.cs │ │ │ ├── UseProperty_String.cs.gold │ │ │ ├── UseProperty_String_Nullable.cs │ │ │ ├── UseProperty_String_Nullable.cs.gold │ │ │ ├── UseSwitchExpressionAvailability.cs │ │ │ ├── UseSwitchExpressionAvailability.cs.gold │ │ │ ├── UseSwitchExpression_SingleOrDefault.cs │ │ │ ├── UseSwitchExpression_SingleOrDefault.cs.gold │ │ │ ├── UseSwitchExpression_SingleOrDefault_DefaultValue.cs │ │ │ ├── UseSwitchExpression_SingleOrDefault_DefaultValue.cs.gold │ │ │ ├── UseSwitchExpression_SingleOrDefault_Parenthesized.cs │ │ │ └── UseSwitchExpression_SingleOrDefault_Parenthesized.cs.gold │ │ ├── LocalSuppression │ │ │ ├── LocalSuppression.cs │ │ │ └── LocalSuppression.cs.gold │ │ ├── LockOnObjectWithWeakIdentity │ │ │ ├── LockOnObjectWithWeakIdentity.cs │ │ │ └── LockOnObjectWithWeakIdentity.cs.gold │ │ ├── NotifyPropertyChangedInvocatorFromConstructor │ │ │ ├── NotifyPropertyChangedInvocatorFromConstructor.cs │ │ │ └── NotifyPropertyChangedInvocatorFromConstructor.cs.gold │ │ ├── NotifyPropertyChangedInvocatorFromConstructorQuickFixes │ │ │ ├── NotifyPropertyChangedInvocatorFromConstructor.cs │ │ │ ├── NotifyPropertyChangedInvocatorFromConstructor.cs.gold │ │ │ ├── NotifyPropertyChangedInvocatorFromConstructorAvailability.cs │ │ │ └── NotifyPropertyChangedInvocatorFromConstructorAvailability.cs.gold │ │ ├── Region │ │ │ ├── RegionWithSingleElement.cs │ │ │ ├── RegionWithSingleElement.cs.gold │ │ │ ├── RegionWithSingleElement_FileScopedNamespace.cs │ │ │ ├── RegionWithSingleElement_FileScopedNamespace.cs.gold │ │ │ ├── RegionWithinTypeMemberBody.cs │ │ │ └── RegionWithinTypeMemberBody.cs.gold │ │ ├── StringBuilder │ │ │ ├── Append.cs │ │ │ ├── Append.cs.gold │ │ │ ├── AppendJoin.cs │ │ │ ├── AppendJoin.cs.gold │ │ │ ├── Insert.cs │ │ │ ├── Insert.cs.gold │ │ │ ├── Replace.cs │ │ │ └── Replace.cs.gold │ │ ├── StringBuilderQuickFixes │ │ │ ├── AppendJoin_EmptyArray.cs │ │ │ ├── AppendJoin_EmptyArray.cs.gold │ │ │ ├── AppendJoin_EmptyArray_Nullable.cs │ │ │ ├── AppendJoin_EmptyArray_Nullable.cs.gold │ │ │ ├── AppendJoin_OneItemArray.cs │ │ │ ├── AppendJoin_OneItemArray.cs.gold │ │ │ ├── AppendJoin_OneItemArray_Nullable.cs │ │ │ ├── AppendJoin_OneItemArray_Nullable.cs.gold │ │ │ ├── AppendJoin_SingleChar.cs │ │ │ ├── AppendJoin_SingleChar.cs.gold │ │ │ ├── AppendJoin_SingleChar_Nullable.cs │ │ │ ├── AppendJoin_SingleChar_Nullable.cs.gold │ │ │ ├── Append_CharArray.cs │ │ │ ├── Append_CharArray.cs.gold │ │ │ ├── Append_CharArray_0_0.cs │ │ │ ├── Append_CharArray_0_0.cs.gold │ │ │ ├── Append_Char_0.cs │ │ │ ├── Append_Char_0.cs.gold │ │ │ ├── Append_Char_0_FluentLast.cs │ │ │ ├── Append_Char_0_FluentLast.cs.gold │ │ │ ├── Append_Char_0_FluentLast_Nullable.cs │ │ │ ├── Append_Char_0_FluentLast_Nullable.cs.gold │ │ │ ├── Append_Char_0_Nullable.cs │ │ │ ├── Append_Char_0_Nullable.cs.gold │ │ │ ├── Append_Char_0_Statement.cs │ │ │ ├── Append_Char_0_Statement.cs.gold │ │ │ ├── Append_Char_0_StatementFluent.cs │ │ │ ├── Append_Char_0_StatementFluent.cs.gold │ │ │ ├── Append_Char_0_StatementFluentLast.cs │ │ │ ├── Append_Char_0_StatementFluentLast.cs.gold │ │ │ ├── Append_Char_0_StatementFluentLast_Nullable.cs │ │ │ ├── Append_Char_0_StatementFluentLast_Nullable.cs.gold │ │ │ ├── Append_Char_0_StatementFluent_Nullable.cs │ │ │ ├── Append_Char_0_StatementFluent_Nullable.cs.gold │ │ │ ├── Append_Char_0_Statement_Nullable.cs │ │ │ ├── Append_Char_0_Statement_Nullable.cs.gold │ │ │ ├── Append_Char_1.cs │ │ │ ├── Append_Char_1.cs.gold │ │ │ ├── Append_Object.cs │ │ │ ├── Append_Object.cs.gold │ │ │ ├── Append_String.cs │ │ │ ├── Append_String.cs.gold │ │ │ ├── Append_StringBuilder.cs │ │ │ ├── Append_StringBuilder.cs.gold │ │ │ ├── Append_StringBuilder_0_0.cs │ │ │ ├── Append_StringBuilder_0_0.cs.gold │ │ │ ├── Append_String_0_0.cs │ │ │ ├── Append_String_0_0.cs.gold │ │ │ ├── Append_String_Int32_Int32.cs │ │ │ ├── Append_String_Int32_Int32.cs.gold │ │ │ ├── Append_String_SingleChar.cs │ │ │ ├── Append_String_SingleChar.cs.gold │ │ │ ├── Insert_Object.cs │ │ │ ├── Insert_Object.cs.gold │ │ │ ├── Insert_String_1.cs │ │ │ ├── Insert_String_1.cs.gold │ │ │ ├── Insert_String_SingleChar.cs │ │ │ ├── Insert_String_SingleChar.cs.gold │ │ │ ├── Insert_String_SingleChar_1.cs │ │ │ ├── Insert_String_SingleChar_1.cs.gold │ │ │ ├── PassSingleCharacterFixAvailability.cs │ │ │ ├── PassSingleCharacterFixAvailability.cs.gold │ │ │ ├── RemoveArgumentFixAvailability.cs │ │ │ ├── RemoveArgumentFixAvailability.cs.gold │ │ │ ├── RemoveMethodInvocationAvailability.cs │ │ │ ├── RemoveMethodInvocationAvailability.cs.gold │ │ │ ├── Replace_Char_Char.cs │ │ │ ├── Replace_Char_Char.cs.gold │ │ │ ├── Replace_String_String.cs │ │ │ ├── Replace_String_String.cs.gold │ │ │ ├── Replace_String_String_Int32_Int32_SingleChar.cs │ │ │ ├── Replace_String_String_Int32_Int32_SingleChar.cs.gold │ │ │ ├── Replace_String_String_SingleChar.cs │ │ │ ├── Replace_String_String_SingleChar.cs.gold │ │ │ ├── UseOtherMethodFixAvailability.cs │ │ │ └── UseOtherMethodFixAvailability.cs.gold │ │ ├── Strings │ │ │ ├── Contains.cs │ │ │ ├── Contains.cs.gold │ │ │ ├── EndsWith.cs │ │ │ ├── EndsWith.cs.gold │ │ │ ├── IndexOf.cs │ │ │ ├── IndexOf.cs.gold │ │ │ ├── IndexOfAny.cs │ │ │ ├── IndexOfAny.cs.gold │ │ │ ├── Join.cs │ │ │ ├── Join.cs.gold │ │ │ ├── LastIndexOf.cs │ │ │ ├── LastIndexOf.cs.gold │ │ │ ├── LastIndexOfAny.cs │ │ │ ├── LastIndexOfAny.cs.gold │ │ │ ├── PadLeft.cs │ │ │ ├── PadLeft.cs.gold │ │ │ ├── PadRight.cs │ │ │ ├── PadRight.cs.gold │ │ │ ├── Remove.cs │ │ │ ├── Remove.cs.gold │ │ │ ├── Replace.cs │ │ │ ├── Replace.cs.gold │ │ │ ├── Split.cs │ │ │ ├── Split.cs.gold │ │ │ ├── StartsWith.cs │ │ │ ├── StartsWith.cs.gold │ │ │ ├── Substring.cs │ │ │ ├── Substring.cs.gold │ │ │ ├── ToString.cs │ │ │ ├── ToString.cs.gold │ │ │ ├── Trim.cs │ │ │ ├── Trim.cs.gold │ │ │ ├── TrimEnd.cs │ │ │ ├── TrimEnd.cs.gold │ │ │ ├── TrimStart.cs │ │ │ └── TrimStart.cs.gold │ │ ├── StringsQuickFixes │ │ │ ├── Contains.cs │ │ │ ├── Contains.cs.gold │ │ │ ├── Contains_Empty.cs │ │ │ ├── Contains_Empty.cs.gold │ │ │ ├── Contains_Empty_Expression.cs │ │ │ ├── Contains_Empty_Expression.cs.gold │ │ │ ├── Contains_Empty_StringComparison.cs │ │ │ ├── Contains_Empty_StringComparison.cs.gold │ │ │ ├── Contains_ParameterName.cs │ │ │ ├── Contains_ParameterName.cs.gold │ │ │ ├── Contains_StringComparison.cs │ │ │ ├── Contains_StringComparison.cs.gold │ │ │ ├── Contains_StringComparison_ParameterName.cs │ │ │ ├── Contains_StringComparison_ParameterName.cs.gold │ │ │ ├── EndsWith_Argument.cs │ │ │ ├── EndsWith_Argument.cs.gold │ │ │ ├── EndsWith_Argument_ParameterName.cs │ │ │ ├── EndsWith_Argument_ParameterName.cs.gold │ │ │ ├── EndsWith_Char.cs │ │ │ ├── EndsWith_Char.cs.gold │ │ │ ├── EndsWith_Char_Constant.cs │ │ │ ├── EndsWith_Char_Constant.cs.gold │ │ │ ├── EndsWith_Char_ParameterName.cs │ │ │ ├── EndsWith_Char_ParameterName.cs.gold │ │ │ ├── EndsWith_Empty.cs │ │ │ ├── EndsWith_Empty.cs.gold │ │ │ ├── EndsWith_Empty_StringComparison.cs │ │ │ ├── EndsWith_Empty_StringComparison.cs.gold │ │ │ ├── EndsWith_String_Ordinal.cs │ │ │ ├── EndsWith_String_Ordinal.cs.gold │ │ │ ├── EndsWith_String_OrdinalIgnoreCase.cs │ │ │ ├── EndsWith_String_OrdinalIgnoreCase.cs.gold │ │ │ ├── IndexOfAny.cs │ │ │ ├── IndexOfAny.cs.gold │ │ │ ├── IndexOfAny_CharArray_DuplicateElement.cs │ │ │ ├── IndexOfAny_CharArray_DuplicateElement.cs.gold │ │ │ ├── IndexOfAny_CharArray_Empty.cs │ │ │ ├── IndexOfAny_CharArray_Empty.cs.gold │ │ │ ├── IndexOfAny_CharArray_Int32_DuplicateElement.cs │ │ │ ├── IndexOfAny_CharArray_Int32_DuplicateElement.cs.gold │ │ │ ├── IndexOfAny_CharArray_Int32_Int32_DuplicateElement.cs │ │ │ ├── IndexOfAny_CharArray_Int32_Int32_DuplicateElement.cs.gold │ │ │ ├── IndexOfAny_CharArray_Int32_Int32_SingleElement.cs │ │ │ ├── IndexOfAny_CharArray_Int32_Int32_SingleElement.cs.gold │ │ │ ├── IndexOfAny_CharArray_Int32_SingleElement.cs │ │ │ ├── IndexOfAny_CharArray_Int32_SingleElement.cs.gold │ │ │ ├── IndexOfAny_CharArray_SingleElement.cs │ │ │ ├── IndexOfAny_CharArray_SingleElement.cs.gold │ │ │ ├── IndexOfAny_ParameterName.cs │ │ │ ├── IndexOfAny_ParameterName.cs.gold │ │ │ ├── IndexOf_CharConst_eq_0.cs │ │ │ ├── IndexOf_CharConst_eq_0.cs.gold │ │ │ ├── IndexOf_CharConst_ne_0.cs │ │ │ ├── IndexOf_CharConst_ne_0.cs.gold │ │ │ ├── IndexOf_Char_Int32.cs │ │ │ ├── IndexOf_Char_Int32.cs.gold │ │ │ ├── IndexOf_Char_Int32_ParameterName.cs │ │ │ ├── IndexOf_Char_Int32_ParameterName.cs.gold │ │ │ ├── IndexOf_Char_StringComparison_eq_m1.cs │ │ │ ├── IndexOf_Char_StringComparison_eq_m1.cs.gold │ │ │ ├── IndexOf_Char_StringComparison_ge_0.cs │ │ │ ├── IndexOf_Char_StringComparison_ge_0.cs.gold │ │ │ ├── IndexOf_Char_StringComparison_gt_m1.cs │ │ │ ├── IndexOf_Char_StringComparison_gt_m1.cs.gold │ │ │ ├── IndexOf_Char_StringComparison_lt_0.cs │ │ │ ├── IndexOf_Char_StringComparison_lt_0.cs.gold │ │ │ ├── IndexOf_Char_StringComparison_ne_m1.cs │ │ │ ├── IndexOf_Char_StringComparison_ne_m1.cs.gold │ │ │ ├── IndexOf_Char_eq_0.cs │ │ │ ├── IndexOf_Char_eq_0.cs.gold │ │ │ ├── IndexOf_Char_eq_m1.cs │ │ │ ├── IndexOf_Char_eq_m1.cs.gold │ │ │ ├── IndexOf_Char_ge_0.cs │ │ │ ├── IndexOf_Char_ge_0.cs.gold │ │ │ ├── IndexOf_Char_gt_m1.cs │ │ │ ├── IndexOf_Char_gt_m1.cs.gold │ │ │ ├── IndexOf_Char_lt_0.cs │ │ │ ├── IndexOf_Char_lt_0.cs.gold │ │ │ ├── IndexOf_Char_ne_0.cs │ │ │ ├── IndexOf_Char_ne_0.cs.gold │ │ │ ├── IndexOf_Char_ne_m1.cs │ │ │ ├── IndexOf_Char_ne_m1.cs.gold │ │ │ ├── IndexOf_Empty.cs │ │ │ ├── IndexOf_Empty.cs.gold │ │ │ ├── IndexOf_Empty_StringComparison.cs │ │ │ ├── IndexOf_Empty_StringComparison.cs.gold │ │ │ ├── IndexOf_StringAsChar.cs │ │ │ ├── IndexOf_StringAsChar.cs.gold │ │ │ ├── IndexOf_StringAsChar_ParameterName.cs │ │ │ ├── IndexOf_StringAsChar_ParameterName.cs.gold │ │ │ ├── IndexOf_StringAsChar_ParameterName_StringComparison.cs │ │ │ ├── IndexOf_StringAsChar_ParameterName_StringComparison.cs.gold │ │ │ ├── IndexOf_StringAsChar_StringComparison.cs │ │ │ ├── IndexOf_StringAsChar_StringComparison.cs.gold │ │ │ ├── IndexOf_String_Int32.cs │ │ │ ├── IndexOf_String_Int32.cs.gold │ │ │ ├── IndexOf_String_Int32_ParameterName.cs │ │ │ ├── IndexOf_String_Int32_ParameterName.cs.gold │ │ │ ├── IndexOf_String_Int32_ParameterName_StringComparison.cs │ │ │ ├── IndexOf_String_Int32_ParameterName_StringComparison.cs.gold │ │ │ ├── IndexOf_String_Int32_StringComparison.cs │ │ │ ├── IndexOf_String_Int32_StringComparison.cs.gold │ │ │ ├── IndexOf_String_StringComparison_eq_0.cs │ │ │ ├── IndexOf_String_StringComparison_eq_0.cs.gold │ │ │ ├── IndexOf_String_StringComparison_eq_m1.cs │ │ │ ├── IndexOf_String_StringComparison_eq_m1.cs.gold │ │ │ ├── IndexOf_String_StringComparison_ge_0.cs │ │ │ ├── IndexOf_String_StringComparison_ge_0.cs.gold │ │ │ ├── IndexOf_String_StringComparison_gt_m1.cs │ │ │ ├── IndexOf_String_StringComparison_gt_m1.cs.gold │ │ │ ├── IndexOf_String_StringComparison_lt_0.cs │ │ │ ├── IndexOf_String_StringComparison_lt_0.cs.gold │ │ │ ├── IndexOf_String_StringComparison_ne_0.cs │ │ │ ├── IndexOf_String_StringComparison_ne_0.cs.gold │ │ │ ├── IndexOf_String_StringComparison_ne_m1.cs │ │ │ ├── IndexOf_String_StringComparison_ne_m1.cs.gold │ │ │ ├── IndexOf_String_eq_0.cs │ │ │ ├── IndexOf_String_eq_0.cs.gold │ │ │ ├── IndexOf_String_eq_m1.cs │ │ │ ├── IndexOf_String_eq_m1.cs.gold │ │ │ ├── IndexOf_String_ge_0.cs │ │ │ ├── IndexOf_String_ge_0.cs.gold │ │ │ ├── IndexOf_String_gt_m1.cs │ │ │ ├── IndexOf_String_gt_m1.cs.gold │ │ │ ├── IndexOf_String_lt_0.cs │ │ │ ├── IndexOf_String_lt_0.cs.gold │ │ │ ├── IndexOf_String_ne_0.cs │ │ │ ├── IndexOf_String_ne_0.cs.gold │ │ │ ├── IndexOf_String_ne_m1.cs │ │ │ ├── IndexOf_String_ne_m1.cs.gold │ │ │ ├── Join_0_0.cs │ │ │ ├── Join_0_0.cs.gold │ │ │ ├── Join_EmptyArray.cs │ │ │ ├── Join_EmptyArray.cs.gold │ │ │ ├── Join_OneItemArray_1_0.cs │ │ │ ├── Join_OneItemArray_1_0.cs.gold │ │ │ ├── Join_OneItemObjectArray.cs │ │ │ ├── Join_OneItemObjectArray.cs.gold │ │ │ ├── Join_OneItemStringArray.cs │ │ │ ├── Join_OneItemStringArray.cs.gold │ │ │ ├── Join_OneItemStringArray_0_1.cs │ │ │ ├── Join_OneItemStringArray_0_1.cs.gold │ │ │ ├── Join_SingleChar.cs │ │ │ ├── Join_SingleChar.cs.gold │ │ │ ├── LastIndexOfAny_CharArray_0.cs │ │ │ ├── LastIndexOfAny_CharArray_0.cs.gold │ │ │ ├── LastIndexOfAny_CharArray_0_0.cs │ │ │ ├── LastIndexOfAny_CharArray_0_0.cs.gold │ │ │ ├── LastIndexOfAny_CharArray_0_1.cs │ │ │ ├── LastIndexOfAny_CharArray_0_1.cs.gold │ │ │ ├── LastIndexOfAny_CharArray_DuplicateElement.cs │ │ │ ├── LastIndexOfAny_CharArray_DuplicateElement.cs.gold │ │ │ ├── LastIndexOfAny_CharArray_Empty.cs │ │ │ ├── LastIndexOfAny_CharArray_Empty.cs.gold │ │ │ ├── LastIndexOfAny_CharArray_Int32_DuplicateElement.cs │ │ │ ├── LastIndexOfAny_CharArray_Int32_DuplicateElement.cs.gold │ │ │ ├── LastIndexOfAny_CharArray_Int32_Int32_DuplicateElement.cs │ │ │ ├── LastIndexOfAny_CharArray_Int32_Int32_DuplicateElement.cs.gold │ │ │ ├── LastIndexOfAny_CharArray_Int32_Int32_SingleElement.cs │ │ │ ├── LastIndexOfAny_CharArray_Int32_Int32_SingleElement.cs.gold │ │ │ ├── LastIndexOfAny_CharArray_Int32_SingleElement.cs │ │ │ ├── LastIndexOfAny_CharArray_Int32_SingleElement.cs.gold │ │ │ ├── LastIndexOfAny_CharArray_SingleElement.cs │ │ │ ├── LastIndexOfAny_CharArray_SingleElement.cs.gold │ │ │ ├── LastIndexOf_Char_0.cs │ │ │ ├── LastIndexOf_Char_0.cs.gold │ │ │ ├── LastIndexOf_Empty.cs │ │ │ ├── LastIndexOf_Empty.cs.gold │ │ │ ├── LastIndexOf_Empty_Nullable.cs │ │ │ ├── LastIndexOf_Empty_Nullable.cs.gold │ │ │ ├── LastIndexOf_Empty_StringComparison.cs │ │ │ ├── LastIndexOf_Empty_StringComparison.cs.gold │ │ │ ├── LastIndexOf_Empty_StringComparison_Nullable.cs │ │ │ ├── LastIndexOf_Empty_StringComparison_Nullable.cs.gold │ │ │ ├── LastIndexOf_StringAsChar_Ordinal.cs │ │ │ ├── LastIndexOf_StringAsChar_Ordinal.cs.gold │ │ │ ├── LastIndexOf_StringAsChar_ParameterName_Ordinal.cs │ │ │ ├── LastIndexOf_StringAsChar_ParameterName_Ordinal.cs.gold │ │ │ ├── PadLeft_0.cs │ │ │ ├── PadLeft_0.cs.gold │ │ │ ├── PadLeft_0_Char.cs │ │ │ ├── PadLeft_0_Char.cs.gold │ │ │ ├── PadLeft_Int32_Space.cs │ │ │ ├── PadLeft_Int32_Space.cs.gold │ │ │ ├── PadRight_0.cs │ │ │ ├── PadRight_0.cs.gold │ │ │ ├── PadRight_0_Char.cs │ │ │ ├── PadRight_0_Char.cs.gold │ │ │ ├── PadRight_Int32_Space.cs │ │ │ ├── PadRight_Int32_Space.cs.gold │ │ │ ├── PassSingleCharacterFixAvailability.cs │ │ │ ├── PassSingleCharacterFixAvailability.cs.gold │ │ │ ├── PassSingleCharactersFixAvailability.cs │ │ │ ├── PassSingleCharactersFixAvailability.cs.gold │ │ │ ├── RemoveArgumentFixAvailability.cs │ │ │ ├── RemoveArgumentFixAvailability.cs.gold │ │ │ ├── RemoveElementFixAvailability.cs │ │ │ ├── RemoveElementFixAvailability.cs.gold │ │ │ ├── RemoveMethodInvocationAvailability.cs │ │ │ ├── RemoveMethodInvocationAvailability.cs.gold │ │ │ ├── Remove_0.cs │ │ │ ├── Remove_0.cs.gold │ │ │ ├── Remove_0_Int32.cs │ │ │ ├── Remove_0_Int32.cs.gold │ │ │ ├── Remove_0_Int32_Nullable.cs │ │ │ ├── Remove_0_Int32_Nullable.cs.gold │ │ │ ├── Remove_0_Int32_Parenthesized.cs │ │ │ ├── Remove_0_Int32_Parenthesized.cs.gold │ │ │ ├── Remove_Int32.cs │ │ │ ├── Remove_Int32.cs.gold │ │ │ ├── Remove_Int32_Nullable.cs │ │ │ ├── Remove_Int32_Nullable.cs.gold │ │ │ ├── Remove_Int32_Parenthesized.cs │ │ │ ├── Remove_Int32_Parenthesized.cs.gold │ │ │ ├── Replace_Char_Char_Identical.cs │ │ │ ├── Replace_Char_Char_Identical.cs.gold │ │ │ ├── Replace_String_String.cs │ │ │ ├── Replace_String_String.cs.gold │ │ │ ├── Replace_String_String_Identical.cs │ │ │ ├── Replace_String_String_Identical.cs.gold │ │ │ ├── Replace_String_String_Ordinal.cs │ │ │ ├── Replace_String_String_Ordinal.cs.gold │ │ │ ├── Replace_String_String_Ordinal_Identical.cs │ │ │ ├── Replace_String_String_Ordinal_Identical.cs.gold │ │ │ ├── Replace_String_String_Ordinal_ParameterName1.cs │ │ │ ├── Replace_String_String_Ordinal_ParameterName1.cs.gold │ │ │ ├── Replace_String_String_Ordinal_ParameterName2.cs │ │ │ ├── Replace_String_String_Ordinal_ParameterName2.cs.gold │ │ │ ├── Replace_String_String_Ordinal_ParameterNames.cs │ │ │ ├── Replace_String_String_Ordinal_ParameterNames.cs.gold │ │ │ ├── Replace_String_String_ParameterName1.cs │ │ │ ├── Replace_String_String_ParameterName1.cs.gold │ │ │ ├── Replace_String_String_ParameterName2.cs │ │ │ ├── Replace_String_String_ParameterName2.cs.gold │ │ │ ├── Replace_String_String_ParameterNames.cs │ │ │ ├── Replace_String_String_ParameterNames.cs.gold │ │ │ ├── Split_ArrayWithOneItem.cs │ │ │ ├── Split_ArrayWithOneItem.cs.gold │ │ │ ├── Split_ArrayWithOneItem_CollectionExpression.cs │ │ │ ├── Split_ArrayWithOneItem_CollectionExpression.cs.gold │ │ │ ├── Split_ArrayWithOneTrimmedItem.cs │ │ │ ├── Split_ArrayWithOneTrimmedItem.cs.gold │ │ │ ├── Split_ArrayWithOneTrimmedItem_CollectionExpression.cs │ │ │ ├── Split_ArrayWithOneTrimmedItem_CollectionExpression.cs.gold │ │ │ ├── Split_DuplicateArgument.cs │ │ │ ├── Split_DuplicateArgument.cs.gold │ │ │ ├── Split_DuplicateElement.cs │ │ │ ├── Split_DuplicateElement.cs.gold │ │ │ ├── Split_DuplicateElement_CollectionExpression.cs │ │ │ ├── Split_DuplicateElement_CollectionExpression.cs.gold │ │ │ ├── Split_EmptyArray.cs │ │ │ ├── Split_EmptyArray.cs.gold │ │ │ ├── Split_EmptyArray_CollectionExpression.cs │ │ │ ├── Split_EmptyArray_CollectionExpression.cs.gold │ │ │ ├── Split_SingleCharacter.cs │ │ │ ├── Split_SingleCharacter.cs.gold │ │ │ ├── Split_SingleCharacters.cs │ │ │ ├── Split_SingleCharacters.cs.gold │ │ │ ├── Split_SingleCharacters_CollectionExpression.cs │ │ │ ├── Split_SingleCharacters_CollectionExpression.cs.gold │ │ │ ├── StartsWith_Argument.cs │ │ │ ├── StartsWith_Argument.cs.gold │ │ │ ├── StartsWith_Argument_ParameterName.cs │ │ │ ├── StartsWith_Argument_ParameterName.cs.gold │ │ │ ├── StartsWith_Char.cs │ │ │ ├── StartsWith_Char.cs.gold │ │ │ ├── StartsWith_Char_ParameterName.cs │ │ │ ├── StartsWith_Char_ParameterName.cs.gold │ │ │ ├── StartsWith_Empty.cs │ │ │ ├── StartsWith_Empty.cs.gold │ │ │ ├── StartsWith_Empty_StringComparison.cs │ │ │ ├── StartsWith_Empty_StringComparison.cs.gold │ │ │ ├── StartsWith_String_Ordinal.cs │ │ │ ├── StartsWith_String_Ordinal.cs.gold │ │ │ ├── StartsWith_String_OrdinalIgnoreCase.cs │ │ │ ├── StartsWith_String_OrdinalIgnoreCase.cs.gold │ │ │ ├── Substring_0.cs │ │ │ ├── Substring_0.cs.gold │ │ │ ├── ToString_IFormatProvider.cs │ │ │ ├── ToString_IFormatProvider.cs.gold │ │ │ ├── TrimEnd_DuplicateArgument.cs │ │ │ ├── TrimEnd_DuplicateArgument.cs.gold │ │ │ ├── TrimEnd_DuplicateElement.cs │ │ │ ├── TrimEnd_DuplicateElement.cs.gold │ │ │ ├── TrimEnd_DuplicateElement_CollectionExpression.cs │ │ │ ├── TrimEnd_DuplicateElement_CollectionExpression.cs.gold │ │ │ ├── TrimEnd_Empty.cs │ │ │ ├── TrimEnd_Empty.cs.gold │ │ │ ├── TrimEnd_EmptyArray_3.cs │ │ │ ├── TrimEnd_EmptyArray_3.cs.gold │ │ │ ├── TrimEnd_Null.cs │ │ │ ├── TrimEnd_Null.cs.gold │ │ │ ├── TrimStart_DuplicateArgument.cs │ │ │ ├── TrimStart_DuplicateArgument.cs.gold │ │ │ ├── TrimStart_DuplicateElement.cs │ │ │ ├── TrimStart_DuplicateElement.cs.gold │ │ │ ├── TrimStart_DuplicateElement_CollectionExpression.cs │ │ │ ├── TrimStart_DuplicateElement_CollectionExpression.cs.gold │ │ │ ├── TrimStart_Empty.cs │ │ │ ├── TrimStart_Empty.cs.gold │ │ │ ├── TrimStart_EmptyArray_3.cs │ │ │ ├── TrimStart_EmptyArray_3.cs.gold │ │ │ ├── TrimStart_Null.cs │ │ │ ├── TrimStart_Null.cs.gold │ │ │ ├── Trim_DuplicateArgument.cs │ │ │ ├── Trim_DuplicateArgument.cs.gold │ │ │ ├── Trim_DuplicateElement.cs │ │ │ ├── Trim_DuplicateElement.cs.gold │ │ │ ├── Trim_DuplicateElement_CollectionExpression.cs │ │ │ ├── Trim_DuplicateElement_CollectionExpression.cs.gold │ │ │ ├── Trim_Empty.cs │ │ │ ├── Trim_Empty.cs.gold │ │ │ ├── Trim_EmptyArray.cs │ │ │ ├── Trim_EmptyArray.cs.gold │ │ │ ├── Trim_EmptyArray_2.cs │ │ │ ├── Trim_EmptyArray_2.cs.gold │ │ │ ├── Trim_EmptyArray_3.cs │ │ │ ├── Trim_EmptyArray_3.cs.gold │ │ │ ├── Trim_Null.cs │ │ │ ├── Trim_Null.cs.gold │ │ │ ├── UseExpressionResultFixAvailability.cs │ │ │ ├── UseExpressionResultFixAvailability.cs.gold │ │ │ ├── UseListPatternFixAvailability.cs │ │ │ ├── UseListPatternFixAvailability.cs.gold │ │ │ ├── UseOtherMethodFixAvailability.cs │ │ │ ├── UseOtherMethodFixAvailability.cs.gold │ │ │ ├── UseRangeIndexerAvailability.cs │ │ │ ├── UseRangeIndexerAvailability.cs.gold │ │ │ ├── UseStringPropertyAvailability.cs │ │ │ └── UseStringPropertyAvailability.cs.gold │ │ ├── ThrowExceptionInUnexpectedLocation │ │ │ ├── ThrowExceptionInUnexpectedLocation.cs │ │ │ ├── ThrowExceptionInUnexpectedLocation.cs.gold │ │ │ ├── ThrowExceptionInUnexpectedLocation_ExceptionHandling.cs │ │ │ ├── ThrowExceptionInUnexpectedLocation_ExceptionHandling.cs.gold │ │ │ ├── ThrowExceptionInUnexpectedLocation_NullableAnnotationContext.cs │ │ │ ├── ThrowExceptionInUnexpectedLocation_NullableAnnotationContext.cs.gold │ │ │ ├── ThrowExceptionInUnexpectedLocation_UnreachableException.cs │ │ │ └── ThrowExceptionInUnexpectedLocation_UnreachableException.cs.gold │ │ ├── UncatchableException │ │ │ ├── UncatchableException.cs │ │ │ └── UncatchableException.cs.gold │ │ ├── UnthrowableException │ │ │ ├── UnthrowableException.cs │ │ │ └── UnthrowableException.cs.gold │ │ ├── ValueTask │ │ │ ├── CodePaths.cs │ │ │ ├── CodePaths.cs.gold │ │ │ ├── IntentionalBlockingAttempts.cs │ │ │ ├── IntentionalBlockingAttempts.cs.gold │ │ │ ├── MultipleConsumption.cs │ │ │ ├── MultipleConsumption.cs.gold │ │ │ ├── SingleConsumption.cs │ │ │ └── SingleConsumption.cs.gold │ │ ├── ValueTaskQuickFixes │ │ │ ├── InsertAsTask.cs │ │ │ ├── InsertAsTask.cs.gold │ │ │ ├── IntentionalBlockingAttemptsAvailability.cs │ │ │ └── IntentionalBlockingAttemptsAvailability.cs.gold │ │ ├── XamlBindingWithoutMode │ │ │ ├── XamlBindingWithoutMode.xaml │ │ │ └── XamlBindingWithoutMode.xaml.gold │ │ └── YieldReturnWithinLock │ │ │ ├── YieldReturnWithinLock.cs │ │ │ ├── YieldReturnWithinLock.cs.gold │ │ │ ├── YieldReturnWithinLockAroundLockObject.cs │ │ │ └── YieldReturnWithinLockAroundLockObject.cs.gold │ └── ContextActions │ │ ├── AnnotateWithAttributeUsage │ │ ├── Availability.cs │ │ ├── Execute.cs │ │ └── Execute.cs.gold │ │ ├── AnnotateWithDefaultEqualityUsage │ │ ├── Availability.cs │ │ ├── ExecuteClassTypeParameter.cs │ │ ├── ExecuteClassTypeParameter.cs.gold │ │ ├── ExecuteMethodParameter.cs │ │ ├── ExecuteMethodParameter.cs.gold │ │ ├── ExecuteMethodReturnValue.cs │ │ ├── ExecuteMethodReturnValue.cs.gold │ │ ├── ExecuteMethodTypeParameter.cs │ │ ├── ExecuteMethodTypeParameter.cs.gold │ │ ├── ExecutePositionalRecordParameter.cs │ │ ├── ExecutePositionalRecordParameter.cs.gold │ │ ├── ExecutePrimaryConstructorParameter.cs │ │ └── ExecutePrimaryConstructorParameter.cs.gold │ │ ├── AnnotateWithHandlesResourceDisposal │ │ ├── AvailabilityFields.cs │ │ ├── AvailabilityMethods.cs │ │ ├── AvailabilityParameters.cs │ │ ├── AvailabilityProperties.cs │ │ ├── ExecuteField.cs │ │ ├── ExecuteField.cs.gold │ │ ├── ExecuteMethod.cs │ │ ├── ExecuteMethod.cs.gold │ │ ├── ExecuteParameter.cs │ │ ├── ExecuteParameter.cs.gold │ │ ├── ExecuteProperty.cs │ │ └── ExecuteProperty.cs.gold │ │ ├── AnnotateWithIgnoreSpellingAndGrammarErrors │ │ ├── Availability.cs │ │ ├── Execute.cs │ │ └── Execute.cs.gold │ │ ├── AnnotateWithInstantHandle │ │ ├── AvailabilityAsyncEnumerableCS80.cs │ │ ├── AvailabilityAsyncEnumerableCS90.cs │ │ ├── AvailabilityCS80.cs │ │ ├── AvailabilityCS90.cs │ │ ├── AvailabilityLambdaCS100.cs │ │ ├── AvailabilityLambdaCS90.cs │ │ ├── ExecuteAsyncEnumerable.cs │ │ ├── ExecuteAsyncEnumerable.cs.gold │ │ ├── ExecuteDelegate.cs │ │ ├── ExecuteDelegate.cs.gold │ │ ├── ExecuteGenericEnumerable.cs │ │ ├── ExecuteGenericEnumerable.cs.gold │ │ ├── ExecuteLambda.cs │ │ ├── ExecuteLambda.cs.gold │ │ ├── ExecuteLambda2.cs │ │ └── ExecuteLambda2.cs.gold │ │ ├── AnnotateWithItemNotNull │ │ ├── Availability.cs │ │ ├── AvailabilityNullableAnnotationContext.cs │ │ ├── ExecuteArrayOnMethod.cs │ │ ├── ExecuteArrayOnMethod.cs.gold │ │ ├── ExecuteGenericCollectionOnParameter.cs │ │ ├── ExecuteGenericCollectionOnParameter.cs.gold │ │ ├── ExecuteGenericListOnIndexer.cs │ │ ├── ExecuteGenericListOnIndexer.cs.gold │ │ ├── ExecuteGenericListOnParameter.cs │ │ ├── ExecuteGenericListOnParameter.cs.gold │ │ ├── ExecuteGenericListOnProperty.cs │ │ ├── ExecuteGenericListOnProperty.cs.gold │ │ ├── ExecuteGenericTaskOnMethod.cs │ │ ├── ExecuteGenericTaskOnMethod.cs.gold │ │ ├── ExecuteGenericValueTaskOnMethod.cs │ │ ├── ExecuteGenericValueTaskOnMethod.cs.gold │ │ ├── ExecuteJaggedArrayOnField.cs │ │ ├── ExecuteJaggedArrayOnField.cs.gold │ │ ├── ExecuteLazyOnDelegate.cs │ │ ├── ExecuteLazyOnDelegate.cs.gold │ │ ├── ExecuteMultiDimensionalArrayOnField.cs │ │ └── ExecuteMultiDimensionalArrayOnField.cs.gold │ │ ├── AnnotateWithLinqTunnel │ │ ├── Availability.cs │ │ ├── AvailabilityAsyncEnumerable.cs │ │ ├── Execute.cs │ │ ├── Execute.cs.gold │ │ ├── ExecuteAsyncEnumerable.cs │ │ └── ExecuteAsyncEnumerable.cs.gold │ │ ├── AnnotateWithMustDisposeResource │ │ ├── AvailabilityConstructors.cs │ │ ├── AvailabilityLocalFunctions.cs │ │ ├── AvailabilityMethods.cs │ │ ├── AvailabilityParameters.cs │ │ ├── AvailabilityPrimaryConstructors.cs │ │ ├── AvailabilityTypes.cs │ │ ├── ExecuteConstructor.cs │ │ ├── ExecuteConstructor.cs.gold │ │ ├── ExecuteMethod.cs │ │ ├── ExecuteMethod.cs.gold │ │ ├── ExecuteMethod_Multiple.cs │ │ ├── ExecuteMethod_Multiple.cs.gold │ │ ├── ExecuteMethod_MustDisposeResourceFalse.cs │ │ ├── ExecuteMethod_MustDisposeResourceFalse.cs.gold │ │ ├── ExecuteMethod_MustUseReturnValue.cs │ │ ├── ExecuteMethod_MustUseReturnValue.cs.gold │ │ ├── ExecuteMethod_Pure.cs │ │ ├── ExecuteMethod_Pure.cs.gold │ │ ├── ExecuteParameter.cs │ │ ├── ExecuteParameter.cs.gold │ │ ├── ExecutePrimaryConstructor.cs │ │ ├── ExecutePrimaryConstructor.cs.gold │ │ ├── ExecuteType.cs │ │ └── ExecuteType.cs.gold │ │ ├── AnnotateWithMustDisposeResourceFalse │ │ ├── AvailabilityConstructors.cs │ │ ├── AvailabilityLocalFunctions.cs │ │ ├── AvailabilityMethods.cs │ │ ├── AvailabilityParameters.cs │ │ ├── AvailabilityPrimaryConstructors.cs │ │ ├── AvailabilityTypes.cs │ │ ├── ExecuteConstructor.cs │ │ ├── ExecuteConstructor.cs.gold │ │ ├── ExecuteMethod.cs │ │ ├── ExecuteMethod.cs.gold │ │ ├── ExecuteMethod_Multiple.cs │ │ ├── ExecuteMethod_Multiple.cs.gold │ │ ├── ExecuteMethod_MustDisposeResource.cs │ │ ├── ExecuteMethod_MustDisposeResource.cs.gold │ │ ├── ExecuteMethod_MustUseReturnValue.cs │ │ ├── ExecuteMethod_MustUseReturnValue.cs.gold │ │ ├── ExecuteMethod_Pure.cs │ │ ├── ExecuteMethod_Pure.cs.gold │ │ ├── ExecuteParameter.cs │ │ ├── ExecuteParameter.cs.gold │ │ ├── ExecutePrimaryConstructor.cs │ │ ├── ExecutePrimaryConstructor.cs.gold │ │ ├── ExecuteType.cs │ │ └── ExecuteType.cs.gold │ │ ├── AnnotateWithMustUseReturnValue │ │ ├── AvailabilityLocalFunctions.cs │ │ ├── AvailabilityMethods.cs │ │ ├── ExecuteMethod.cs │ │ ├── ExecuteMethod.cs.gold │ │ ├── ExecuteMethod_MustDisposeResource.cs │ │ ├── ExecuteMethod_MustDisposeResource.cs.gold │ │ ├── ExecuteMethod_Pure.cs │ │ └── ExecuteMethod_Pure.cs.gold │ │ ├── AnnotateWithNonNegativeValue │ │ ├── Availability.cs │ │ ├── AvailabilityLambda.cs │ │ ├── Execute.cs │ │ ├── Execute.cs.gold │ │ ├── ExecuteLambda.cs │ │ ├── ExecuteLambda.cs.gold │ │ ├── ExecuteLambda2.cs │ │ └── ExecuteLambda2.cs.gold │ │ ├── AnnotateWithPure │ │ ├── AvailabilityLocalFunctions.cs │ │ ├── AvailabilityMethods.cs │ │ ├── ExecuteMethod.cs │ │ ├── ExecuteMethod.cs.gold │ │ ├── ExecuteMethod_MustDisposeResource.cs │ │ ├── ExecuteMethod_MustDisposeResource.cs.gold │ │ ├── ExecuteMethod_MustUseReturnValue.cs │ │ └── ExecuteMethod_MustUseReturnValue.cs.gold │ │ ├── AnnotateWithValueRange │ │ ├── Availability.cs │ │ ├── AvailabilityLambda.cs │ │ ├── Execute.cs │ │ ├── Execute.cs.gold │ │ ├── ExecuteLambda.cs │ │ ├── ExecuteLambda.cs.gold │ │ ├── ExecuteLambda2.cs │ │ └── ExecuteLambda2.cs.gold │ │ ├── CodeContracts │ │ ├── Elements │ │ │ ├── Field │ │ │ │ ├── Availability.cs │ │ │ │ ├── ExecuteWithContractInvariantMethod.cs │ │ │ │ ├── ExecuteWithContractInvariantMethod.cs.gold │ │ │ │ ├── ExecuteWithoutContractInvariantMethod.cs │ │ │ │ └── ExecuteWithoutContractInvariantMethod.cs.gold │ │ │ ├── Method │ │ │ │ ├── Availability.cs │ │ │ │ ├── ExecuteWithAbstractMethod.cs │ │ │ │ ├── ExecuteWithAbstractMethod.cs.gold │ │ │ │ ├── ExecuteWithAbstractMethod2.cs │ │ │ │ ├── ExecuteWithAbstractMethod2.cs.gold │ │ │ │ ├── ExecuteWithAbstractMethod3.cs │ │ │ │ ├── ExecuteWithAbstractMethod3.cs.gold │ │ │ │ ├── ExecuteWithEmptyMethod.cs │ │ │ │ ├── ExecuteWithEmptyMethod.cs.gold │ │ │ │ ├── ExecuteWithInterfaceMethod.cs │ │ │ │ ├── ExecuteWithInterfaceMethod.cs.gold │ │ │ │ ├── ExecuteWithNonEmptyMethod.cs │ │ │ │ ├── ExecuteWithNonEmptyMethod.cs.gold │ │ │ │ ├── ExecuteWithNonEmptyMethod2.cs │ │ │ │ ├── ExecuteWithNonEmptyMethod2.cs.gold │ │ │ │ ├── ExecuteWithNonEmptyMethod3.cs │ │ │ │ └── ExecuteWithNonEmptyMethod3.cs.gold │ │ │ ├── Operator │ │ │ │ ├── Availability.cs │ │ │ │ ├── ExecuteConversion.cs │ │ │ │ ├── ExecuteConversion.cs.gold │ │ │ │ ├── ExecuteOverload.cs │ │ │ │ ├── ExecuteOverload.cs.gold │ │ │ │ ├── ExecuteOverloadNonEmpty.cs │ │ │ │ └── ExecuteOverloadNonEmpty.cs.gold │ │ │ ├── Parameter │ │ │ │ ├── Availability.cs │ │ │ │ ├── ExecuteWithAbstractIndexer.cs │ │ │ │ ├── ExecuteWithAbstractIndexer.cs.gold │ │ │ │ ├── ExecuteWithAbstractMethod.cs │ │ │ │ ├── ExecuteWithAbstractMethod.cs.gold │ │ │ │ ├── ExecuteWithEmptyMethod.cs │ │ │ │ ├── ExecuteWithEmptyMethod.cs.gold │ │ │ │ ├── ExecuteWithIndexer.cs │ │ │ │ ├── ExecuteWithIndexer.cs.gold │ │ │ │ ├── ExecuteWithInterfaceIndexer.cs │ │ │ │ ├── ExecuteWithInterfaceIndexer.cs.gold │ │ │ │ ├── ExecuteWithInterfaceMethod.cs │ │ │ │ ├── ExecuteWithInterfaceMethod.cs.gold │ │ │ │ ├── ExecuteWithNonEmptyMethod.cs │ │ │ │ ├── ExecuteWithNonEmptyMethod.cs.gold │ │ │ │ ├── ExecuteWithNonEmptyMethod2.cs │ │ │ │ ├── ExecuteWithNonEmptyMethod2.cs.gold │ │ │ │ ├── ExecuteWithNonEmptyMethod3.cs │ │ │ │ ├── ExecuteWithNonEmptyMethod3.cs.gold │ │ │ │ ├── ExecuteWithOutParameter.cs │ │ │ │ ├── ExecuteWithOutParameter.cs.gold │ │ │ │ ├── ExecuteWithRefParameter.cs │ │ │ │ └── ExecuteWithRefParameter.cs.gold │ │ │ └── Property │ │ │ │ ├── Availability.cs │ │ │ │ ├── Execute.cs │ │ │ │ ├── Execute.cs.gold │ │ │ │ ├── ExecuteAutoProperty.cs │ │ │ │ ├── ExecuteAutoProperty.cs.gold │ │ │ │ ├── ExecuteReadOnlyProperty.cs │ │ │ │ ├── ExecuteReadOnlyProperty.cs.gold │ │ │ │ ├── ExecuteWithAbstractIndexer.cs │ │ │ │ ├── ExecuteWithAbstractIndexer.cs.gold │ │ │ │ ├── ExecuteWithAbstractIndexer2.cs │ │ │ │ ├── ExecuteWithAbstractIndexer2.cs.gold │ │ │ │ ├── ExecuteWithAbstractIndexer3.cs │ │ │ │ ├── ExecuteWithAbstractIndexer3.cs.gold │ │ │ │ ├── ExecuteWithAbstractIndexer4.cs │ │ │ │ ├── ExecuteWithAbstractIndexer4.cs.gold │ │ │ │ ├── ExecuteWithAbstractProperty.cs │ │ │ │ ├── ExecuteWithAbstractProperty.cs.gold │ │ │ │ ├── ExecuteWithAbstractProperty2.cs │ │ │ │ ├── ExecuteWithAbstractProperty2.cs.gold │ │ │ │ ├── ExecuteWithAbstractProperty3.cs │ │ │ │ ├── ExecuteWithAbstractProperty3.cs.gold │ │ │ │ ├── ExecuteWithAbstractProperty4.cs │ │ │ │ ├── ExecuteWithAbstractProperty4.cs.gold │ │ │ │ ├── ExecuteWithIndexer.cs │ │ │ │ ├── ExecuteWithIndexer.cs.gold │ │ │ │ ├── ExecuteWithInterfaceIndexer.cs │ │ │ │ ├── ExecuteWithInterfaceIndexer.cs.gold │ │ │ │ ├── ExecuteWithInterfaceProperty.cs │ │ │ │ ├── ExecuteWithInterfaceProperty.cs.gold │ │ │ │ ├── ExecuteWithReadOnlyIndexer.cs │ │ │ │ ├── ExecuteWithReadOnlyIndexer.cs.gold │ │ │ │ ├── ExecuteWithWriteOnlyIndexer.cs │ │ │ │ ├── ExecuteWithWriteOnlyIndexer.cs.gold │ │ │ │ ├── ExecuteWriteOnlyProperty.cs │ │ │ │ └── ExecuteWriteOnlyProperty.cs.gold │ │ └── Types │ │ │ ├── CollectionAllItemsNotNull │ │ │ ├── Availability.cs │ │ │ ├── ExecuteArray.cs │ │ │ ├── ExecuteArray.cs.gold │ │ │ ├── ExecuteCollection.cs │ │ │ ├── ExecuteCollection.cs.gold │ │ │ ├── ExecuteDictionary.cs │ │ │ ├── ExecuteDictionary.cs.gold │ │ │ ├── ExecuteGenericCollection.cs │ │ │ └── ExecuteGenericCollection.cs.gold │ │ │ ├── CollectionCountPositive │ │ │ ├── Availability.cs │ │ │ ├── ExecuteArray.cs │ │ │ ├── ExecuteArray.cs.gold │ │ │ ├── ExecuteArrayType.cs │ │ │ ├── ExecuteArrayType.cs.gold │ │ │ ├── ExecuteCollection.cs │ │ │ ├── ExecuteCollection.cs.gold │ │ │ ├── ExecuteDictionary.cs │ │ │ ├── ExecuteDictionary.cs.gold │ │ │ ├── ExecuteGenericCollection.cs │ │ │ └── ExecuteGenericCollection.cs.gold │ │ │ ├── DateTimeTimeOfDayZero │ │ │ ├── Availability.cs │ │ │ ├── Execute.cs │ │ │ └── Execute.cs.gold │ │ │ ├── EnumBetweenFirstAndLast │ │ │ ├── Availability.cs │ │ │ ├── Execute.cs │ │ │ └── Execute.cs.gold │ │ │ ├── EnumFlags │ │ │ ├── Availability.cs │ │ │ ├── ExecuteWithZero.cs │ │ │ ├── ExecuteWithZero.cs.gold │ │ │ ├── ExecuteWithZeroSingleMember.cs │ │ │ ├── ExecuteWithZeroSingleMember.cs.gold │ │ │ ├── ExecuteWithoutZero.cs │ │ │ └── ExecuteWithoutZero.cs.gold │ │ │ ├── EnumKnownValues │ │ │ ├── Availability.cs │ │ │ ├── ExecuteFourMembers.cs │ │ │ ├── ExecuteFourMembers.cs.gold │ │ │ ├── ExecuteTwoMembers.cs │ │ │ └── ExecuteTwoMembers.cs.gold │ │ │ ├── GuidNonEmpty │ │ │ ├── Availability.cs │ │ │ ├── Execute.cs │ │ │ └── Execute.cs.gold │ │ │ ├── IntPtrUIntPtrNonZero │ │ │ ├── Availability.cs │ │ │ ├── ExecuteIntPtr.cs │ │ │ ├── ExecuteIntPtr.cs.gold │ │ │ ├── ExecuteUIntPtr.cs │ │ │ └── ExecuteUIntPtr.cs.gold │ │ │ ├── IntPtrUIntPtrZero │ │ │ ├── Availability.cs │ │ │ ├── ExecuteIntPtr.cs │ │ │ ├── ExecuteIntPtr.cs.gold │ │ │ ├── ExecuteUIntPtr.cs │ │ │ └── ExecuteUIntPtr.cs.gold │ │ │ ├── NotNull │ │ │ ├── Availability.cs │ │ │ ├── Execute.cs │ │ │ └── Execute.cs.gold │ │ │ ├── NumericPositive │ │ │ ├── Availability.cs │ │ │ ├── ExecuteByte.cs │ │ │ ├── ExecuteByte.cs.gold │ │ │ ├── ExecuteDecimal.cs │ │ │ ├── ExecuteDecimal.cs.gold │ │ │ ├── ExecuteDouble.cs │ │ │ ├── ExecuteDouble.cs.gold │ │ │ ├── ExecuteFloat.cs │ │ │ ├── ExecuteFloat.cs.gold │ │ │ ├── ExecuteInt.cs │ │ │ ├── ExecuteInt.cs.gold │ │ │ ├── ExecuteLong.cs │ │ │ ├── ExecuteLong.cs.gold │ │ │ ├── ExecuteSbyte.cs │ │ │ ├── ExecuteSbyte.cs.gold │ │ │ ├── ExecuteShort.cs │ │ │ ├── ExecuteShort.cs.gold │ │ │ ├── ExecuteUInt.cs │ │ │ ├── ExecuteUInt.cs.gold │ │ │ ├── ExecuteUlong.cs │ │ │ ├── ExecuteUlong.cs.gold │ │ │ ├── ExecuteUshort.cs │ │ │ └── ExecuteUshort.cs.gold │ │ │ ├── NumericZero │ │ │ ├── Availability.cs │ │ │ ├── ExecuteByte.cs │ │ │ ├── ExecuteByte.cs.gold │ │ │ ├── ExecuteDecimal.cs │ │ │ ├── ExecuteDecimal.cs.gold │ │ │ ├── ExecuteDouble.cs │ │ │ ├── ExecuteDouble.cs.gold │ │ │ ├── ExecuteFloat.cs │ │ │ ├── ExecuteFloat.cs.gold │ │ │ ├── ExecuteInt.cs │ │ │ ├── ExecuteInt.cs.gold │ │ │ ├── ExecuteLong.cs │ │ │ ├── ExecuteLong.cs.gold │ │ │ ├── ExecuteSbyte.cs │ │ │ ├── ExecuteSbyte.cs.gold │ │ │ ├── ExecuteShort.cs │ │ │ ├── ExecuteShort.cs.gold │ │ │ ├── ExecuteUInt.cs │ │ │ ├── ExecuteUInt.cs.gold │ │ │ ├── ExecuteUlong.cs │ │ │ ├── ExecuteUlong.cs.gold │ │ │ ├── ExecuteUshort.cs │ │ │ └── ExecuteUshort.cs.gold │ │ │ ├── SignedNumericNegative │ │ │ ├── Availability.cs │ │ │ ├── ExecuteDecimal.cs │ │ │ ├── ExecuteDecimal.cs.gold │ │ │ ├── ExecuteDouble.cs │ │ │ ├── ExecuteDouble.cs.gold │ │ │ ├── ExecuteFloat.cs │ │ │ ├── ExecuteFloat.cs.gold │ │ │ ├── ExecuteInt.cs │ │ │ ├── ExecuteInt.cs.gold │ │ │ ├── ExecuteLong.cs │ │ │ ├── ExecuteLong.cs.gold │ │ │ ├── ExecuteSbyte.cs │ │ │ ├── ExecuteSbyte.cs.gold │ │ │ ├── ExecuteShort.cs │ │ │ └── ExecuteShort.cs.gold │ │ │ ├── SignedNumericNonZero │ │ │ ├── Availability.cs │ │ │ ├── ExecuteDecimal.cs │ │ │ ├── ExecuteDecimal.cs.gold │ │ │ ├── ExecuteDouble.cs │ │ │ ├── ExecuteDouble.cs.gold │ │ │ ├── ExecuteFloat.cs │ │ │ ├── ExecuteFloat.cs.gold │ │ │ ├── ExecuteInt.cs │ │ │ ├── ExecuteInt.cs.gold │ │ │ ├── ExecuteLong.cs │ │ │ ├── ExecuteLong.cs.gold │ │ │ ├── ExecuteSbyte.cs │ │ │ ├── ExecuteSbyte.cs.gold │ │ │ ├── ExecuteShort.cs │ │ │ └── ExecuteShort.cs.gold │ │ │ ├── SignedNumericZeroOrNegative │ │ │ ├── Availability.cs │ │ │ ├── ExecuteDecimal.cs │ │ │ ├── ExecuteDecimal.cs.gold │ │ │ ├── ExecuteDouble.cs │ │ │ ├── ExecuteDouble.cs.gold │ │ │ ├── ExecuteFloat.cs │ │ │ ├── ExecuteFloat.cs.gold │ │ │ ├── ExecuteInt.cs │ │ │ ├── ExecuteInt.cs.gold │ │ │ ├── ExecuteLong.cs │ │ │ ├── ExecuteLong.cs.gold │ │ │ ├── ExecuteSbyte.cs │ │ │ ├── ExecuteSbyte.cs.gold │ │ │ ├── ExecuteShort.cs │ │ │ └── ExecuteShort.cs.gold │ │ │ ├── SignedNumericZeroOrPositive │ │ │ ├── Availability.cs │ │ │ ├── ExecuteDecimal.cs │ │ │ ├── ExecuteDecimal.cs.gold │ │ │ ├── ExecuteDouble.cs │ │ │ ├── ExecuteDouble.cs.gold │ │ │ ├── ExecuteFloat.cs │ │ │ ├── ExecuteFloat.cs.gold │ │ │ ├── ExecuteInt.cs │ │ │ ├── ExecuteInt.cs.gold │ │ │ ├── ExecuteLong.cs │ │ │ ├── ExecuteLong.cs.gold │ │ │ ├── ExecuteSbyte.cs │ │ │ ├── ExecuteSbyte.cs.gold │ │ │ ├── ExecuteShort.cs │ │ │ └── ExecuteShort.cs.gold │ │ │ ├── StringNotNullAndNotEmpty │ │ │ ├── Availability.cs │ │ │ ├── Execute.cs │ │ │ └── Execute.cs.gold │ │ │ ├── TimeSpanNegative │ │ │ ├── Availability.cs │ │ │ ├── Execute.cs │ │ │ └── Execute.cs.gold │ │ │ ├── TimeSpanNonZero │ │ │ ├── Availability.cs │ │ │ ├── Execute.cs │ │ │ └── Execute.cs.gold │ │ │ ├── TimeSpanPositive │ │ │ ├── Availability.cs │ │ │ ├── Execute.cs │ │ │ └── Execute.cs.gold │ │ │ ├── TimeSpanZero │ │ │ ├── Availability.cs │ │ │ ├── Execute.cs │ │ │ └── Execute.cs.gold │ │ │ ├── TimeSpanZeroOrNegative │ │ │ ├── Availability.cs │ │ │ ├── Execute.cs │ │ │ └── Execute.cs.gold │ │ │ └── TimeSpanZeroOrPositive │ │ │ ├── Availability.cs │ │ │ ├── Execute.cs │ │ │ └── Execute.cs.gold │ │ ├── DeclareComparisonOperators │ │ ├── Availability.cs │ │ ├── Availability_CS10.cs │ │ ├── Availability_NET_6.cs │ │ ├── Execute_Class.cs │ │ ├── Execute_Class.cs.gold │ │ ├── Execute_Record.cs │ │ ├── Execute_Record.cs.gold │ │ ├── Execute_Struct.cs │ │ └── Execute_Struct.cs.gold │ │ ├── DeclareEqualityOperators │ │ ├── Availability.cs │ │ ├── Availability_CS10.cs │ │ ├── Availability_NET_6.cs │ │ ├── Execute_Class.cs │ │ ├── Execute_Class.cs.gold │ │ ├── Execute_Record.cs │ │ ├── Execute_Record.cs.gold │ │ ├── Execute_Record2.cs │ │ ├── Execute_Record2.cs.gold │ │ ├── Execute_Record3.cs │ │ ├── Execute_Record3.cs.gold │ │ ├── Execute_Record4.cs │ │ ├── Execute_Record4.cs.gold │ │ ├── Execute_Record5.cs │ │ ├── Execute_Record5.cs.gold │ │ ├── Execute_RecordStruct.cs │ │ ├── Execute_RecordStruct.cs.gold │ │ ├── Execute_Struct.cs │ │ └── Execute_Struct.cs.gold │ │ ├── EmbedIntoParamrefName │ │ ├── Availability.cs │ │ ├── ExecuteSelection.cs │ │ ├── ExecuteSelection.cs.gold │ │ ├── ExecuteWord.cs │ │ └── ExecuteWord.cs.gold │ │ ├── EmbedIntoSeeCRef │ │ ├── Availability.cs │ │ ├── ExecuteSelection.cs │ │ ├── ExecuteSelection.cs.gold │ │ ├── ExecuteWord.cs │ │ └── ExecuteWord.cs.gold │ │ ├── EmbedIntoTypeparamrefName │ │ ├── Availability.cs │ │ ├── ExecuteSelection.cs │ │ ├── ExecuteSelection.cs.gold │ │ ├── ExecuteWord.cs │ │ └── ExecuteWord.cs.gold │ │ ├── EmbraceWithCTags │ │ ├── Availability.cs │ │ ├── ExecuteSelection.cs │ │ ├── ExecuteSelection.cs.gold │ │ ├── ExecuteWord.cs │ │ └── ExecuteWord.cs.gold │ │ ├── ReflowDocComments │ │ ├── Availability_NestedTags.cs │ │ ├── Availability_TopLevelTags.cs │ │ ├── Execute_Case_1.cs │ │ ├── Execute_Case_1.cs.gold │ │ ├── Execute_Case_2.cs │ │ ├── Execute_Case_2.cs.gold │ │ ├── Execute_Case_3.cs │ │ ├── Execute_Case_3.cs.gold │ │ ├── Execute_Case_4.cs │ │ ├── Execute_Case_4.cs.gold │ │ ├── Execute_ReorderTopLevelTags.cs │ │ ├── Execute_ReorderTopLevelTags.cs.gold │ │ ├── Execute_WrapNestedTags.cs │ │ ├── Execute_WrapNestedTags.cs.gold │ │ ├── Execute_WrapNestedTags_Para.cs │ │ ├── Execute_WrapNestedTags_Para.cs.gold │ │ ├── Execute_WrapTopLevelTags.cs │ │ └── Execute_WrapTopLevelTags.cs.gold │ │ ├── RemoveAssertNotNull │ │ ├── Availability.cs │ │ ├── Execute.cs │ │ └── Execute.cs.gold │ │ ├── ReplaceIsNullOrEmpty │ │ ├── Availability.cs │ │ ├── ReplaceWithNegatedListPattern.cs │ │ ├── ReplaceWithNegatedListPattern.cs.gold │ │ ├── ReplaceWithNegatedObject.cs │ │ ├── ReplaceWithNegatedObject.cs.gold │ │ ├── ReplaceWithNegatedObjectOrEmpty.cs │ │ ├── ReplaceWithNegatedObjectOrEmpty.cs.gold │ │ ├── ReplaceWithNegatedObjectOrEmptyList.cs │ │ ├── ReplaceWithNegatedObjectOrEmptyList.cs.gold │ │ ├── ReplaceWithNullOrEmpty.cs │ │ ├── ReplaceWithNullOrEmpty.cs.gold │ │ ├── ReplaceWithNullOrEmptyList.cs │ │ └── ReplaceWithNullOrEmptyList.cs.gold │ │ ├── SetLanguageInjection │ │ ├── Availability.cs │ │ ├── ExecuteAssignmentAdd.cs │ │ ├── ExecuteAssignmentAdd.cs.gold │ │ ├── ExecuteAssignmentUpdate.cs │ │ ├── ExecuteAssignmentUpdate.cs.gold │ │ ├── ExecuteConstantAdd.cs │ │ ├── ExecuteConstantAdd.cs.gold │ │ ├── ExecuteConstantUpdate.cs │ │ ├── ExecuteConstantUpdate.cs.gold │ │ ├── ExecuteFieldAdd.cs │ │ ├── ExecuteFieldAdd.cs.gold │ │ ├── ExecuteFieldUpdate.cs │ │ ├── ExecuteFieldUpdate.cs.gold │ │ ├── ExecuteLocalConstantAdd.cs │ │ ├── ExecuteLocalConstantAdd.cs.gold │ │ ├── ExecuteLocalConstantUpdate.cs │ │ ├── ExecuteLocalConstantUpdate.cs.gold │ │ ├── ExecuteObjectInitializationAdd.cs │ │ ├── ExecuteObjectInitializationAdd.cs.gold │ │ ├── ExecuteObjectInitializationUpdate.cs │ │ ├── ExecuteObjectInitializationUpdate.cs.gold │ │ ├── ExecuteVariableAdd.cs │ │ ├── ExecuteVariableAdd.cs.gold │ │ ├── ExecuteVariableUpdate.cs │ │ └── ExecuteVariableUpdate.cs.gold │ │ └── ToggleReturnTypeOfAsyncMethods │ │ ├── Availability.cs │ │ ├── GenericTaskToGenericValueTask_Int32.cs │ │ ├── GenericTaskToGenericValueTask_Int32.cs.gold │ │ ├── GenericTaskToGenericValueTask_T.cs │ │ ├── GenericTaskToGenericValueTask_T.cs.gold │ │ ├── GenericValueTaskToGenericTask_Int32.cs │ │ ├── GenericValueTaskToGenericTask_Int32.cs.gold │ │ ├── GenericValueTaskToGenericTask_T.cs │ │ ├── GenericValueTaskToGenericTask_T.cs.gold │ │ ├── TaskToValueTask.cs │ │ ├── TaskToValueTask.cs.gold │ │ ├── Unavailability.cs │ │ ├── ValueTaskToTask.cs │ │ └── ValueTaskToTask.cs.gold │ └── nuget.config ├── ReCommendedExtension.sln.DotSettings ├── ReCommendedExtension.slnx └── ReCommendedExtension ├── Analyzers ├── Annotation │ ├── AnnotationAnalyzer.cs │ ├── AttributeHighlighting.cs │ ├── CoerceValueRangeBoundary.cs │ ├── ConditionalAnnotationHint.cs │ ├── ConflictingAnnotationWarning.cs │ ├── InvalidValueRangeBoundaryWarning.cs │ ├── MissingAnnotationWarning.cs │ ├── MissingSuppressionJustificationWarning.cs │ ├── NotAllowedAnnotationWarning.cs │ ├── RedundantAnnotationArgumentSuggestion.cs │ ├── RedundantAnnotationSuggestion.cs │ ├── RedundantNullableAnnotationHint.cs │ ├── RemoveAttributeArgumentFix.cs │ ├── RemoveAttributeFix.cs │ ├── RemoveNullableAnnotationFix.cs │ └── ValueRangeBoundary.cs ├── ArgumentExceptionConstructorArgument │ ├── ArgumentExceptionConstructorArgumentAnalyzer.cs │ └── ArgumentExceptionConstructorArgumentWarning.cs ├── AsyncVoid │ ├── AsyncVoidAnalyzer.cs │ ├── AsyncVoidFunctionExpressionWarning.cs │ ├── AvoidAsyncVoidWarning.cs │ ├── ChangeToAsyncTaskFix.cs │ └── RemoveAsyncFix.cs ├── Await │ ├── AwaitAnalyzer.cs │ └── RedundantCapturedContextSuggestion.cs ├── BaseType │ ├── BaseTypeAnalyzer.cs │ ├── RemoveBaseTypeDeclarationFix.cs │ └── RemoveRedundantBaseTypeDeclarationHint.cs ├── CatchClauseWithoutVariable │ ├── CatchClauseWithoutVariableAnalyzer.cs │ ├── CatchClauseWithoutVariableHint.cs │ └── RemoveExceptionTypeDeclarationFromCatchClauseFix.cs ├── Collection │ ├── ArrayWithDefaultValuesInitializationSuggestion.cs │ ├── CollectionAnalyzer.cs │ ├── ReplaceWithArrayEmptyFix.cs │ ├── ReplaceWithCollectionExpressionFix.cs │ ├── ReplaceWithNewArrayWithLengthFix.cs │ ├── UseEmptyForArrayInitializationWarning.cs │ └── UseTargetTypedCollectionExpressionSuggestion.cs ├── ConditionalInvocation │ ├── ConditionalInvocationAnalyzer.cs │ └── ConditionalInvocationHint.cs ├── ControlFlow │ ├── Assertion.cs │ ├── AssertionStatement.cs │ ├── ControlFlowAnalyzer.cs │ ├── InlineAssertion.cs │ ├── RedundantAssertionStatementSuggestion.cs │ ├── RedundantAssertionSuggestion.cs │ ├── RedundantInlineAssertionSuggestion.cs │ └── RemoveAssertionStatementFix.cs ├── DelegateInvoke │ ├── DelegateInvokeAnalyzer.cs │ ├── RedundantDelegateInvokeHint.cs │ └── RemoveDelegateInvokeFix.cs ├── Highlighting.cs ├── InterfaceImplementation │ ├── ImplementComparisonOperatorsForClassesSuggestion.cs │ ├── ImplementComparisonOperatorsForRecordsSuggestion.cs │ ├── ImplementComparisonOperatorsForStructsSuggestion.cs │ ├── ImplementEqualityOperatorsForClassesSuggestion.cs │ ├── ImplementEqualityOperatorsForRecordsSuggestion.cs │ ├── ImplementEqualityOperatorsForStructsSuggestion.cs │ ├── ImplementEquatableWarning.cs │ ├── ImplementOperatorsHighlighting.cs │ ├── InterfaceImplementationAnalyzer.cs │ └── OverrideEqualsWarning.cs ├── InternalConstructor │ ├── ChangeConstructorVisibilityFix.cs │ ├── InternalConstructorVisibilityAnalyzer.cs │ └── InternalConstructorVisibilitySuggestion.cs ├── Linq │ ├── LinqAnalyzer.cs │ ├── LinqHighlighting.cs │ ├── ListPatternSuggestionKind.cs │ ├── SuspiciousElementAccessWarning.cs │ ├── UseCollectionPropertyFix.cs │ ├── UseCollectionPropertySuggestion.cs │ ├── UseIndexerFix.cs │ ├── UseIndexerSuggestion.cs │ ├── UseLinqListPatternFix.cs │ ├── UseLinqListPatternSuggestion.cs │ ├── UseSwitchExpressionFix.cs │ └── UseSwitchExpressionSuggestion.cs ├── LocalSuppression │ ├── LocalSuppressionAnalyzer.cs │ └── LocalSuppressionWarning.cs ├── LockOnObjectWithWeakIdentity │ ├── LockOnObjectWithWeakIdentityAnalyzer.cs │ └── LockOnObjectWithWeakIdentityWarning.cs ├── MultipleHighlightings.cs ├── NotifyPropertyChangedInvocatorFromConstructor │ ├── NotifyPropertyChangedInvocatorFromConstructorAnalyzer.cs │ ├── NotifyPropertyChangedInvocatorFromConstructorWarning.cs │ └── RemoveNotifyPropertyChangedInvocatorFix.cs ├── Region │ ├── RegionAnalyzer.cs │ ├── RegionHighlighting.cs │ ├── RegionWithSingleElementSuggestion.cs │ └── RegionWithinTypeMemberBodyWarning.cs ├── Strings │ ├── Collections │ │ ├── ArrayCreationExpressionCollectionCreation.cs │ │ ├── CollectionCreation.cs │ │ ├── CollectionExpressionCollectionCreation.cs │ │ └── EmptyCollectionCreation.cs │ ├── ListPatternSuggestionKind.cs │ ├── PassSingleCharacterFix.cs │ ├── PassSingleCharacterSuggestion.cs │ ├── PassSingleCharactersFix.cs │ ├── PassSingleCharactersSuggestion.cs │ ├── RedundantArgumentHint.cs │ ├── RedundantElementHint.cs │ ├── RedundantMethodInvocationHint.cs │ ├── RemoveArgumentFix.cs │ ├── RemoveElementFix.cs │ ├── RemoveMethodInvocationFix.cs │ ├── StringAnalyzer.cs │ ├── StringBuilderAnalyzer.cs │ ├── UseExpressionResultFix.cs │ ├── UseExpressionResultSuggestion.cs │ ├── UseOtherMethodFix.cs │ ├── UseOtherMethodSuggestion.cs │ ├── UseRangeIndexerFix.cs │ ├── UseRangeIndexerSuggestion.cs │ ├── UseStringListPatternFix.cs │ ├── UseStringListPatternSuggestion.cs │ ├── UseStringPropertyFix.cs │ └── UseStringPropertySuggestion.cs ├── ThrowExceptionInUnexpectedLocation │ ├── ThrowExceptionInUnexpectedLocationAnalyzer.cs │ └── ThrowExceptionInUnexpectedLocationWarning.cs ├── UncatchableException │ ├── UncatchableExceptionAnalyzer.cs │ └── UncatchableExceptionWarning.cs ├── UnthrowableException │ ├── UnthrowableExceptionAnalyzer.cs │ └── UnthrowableExceptionWarning.cs ├── ValueTask │ ├── InsertAsTaskFix.cs │ ├── IntentionalBlockingAttemptWarning.cs │ ├── PossibleMultipleConsumptionWarning.cs │ └── ValueTaskAnalyzer.cs ├── XamlBindingWithoutMode │ ├── XamlBindingWithoutModeAnalyzer.cs │ └── XamlBindingWithoutModeWarning.cs └── YieldReturnWithinLock │ ├── YieldReturnWithinLockAnalyzer.cs │ └── YieldReturnWithinLockWarning.cs ├── ClrTypeNames.cs ├── ContextActions ├── Annotations │ ├── AnnotateWith.cs │ ├── AnnotateWithAttributeUsage.cs │ ├── AnnotateWithCodeAnnotation.cs │ ├── AnnotateWithDefaultEqualityUsage.cs │ ├── AnnotateWithHandlesResourceDisposal.cs │ ├── AnnotateWithIgnoreSpellingAndGrammarErrors.cs │ ├── AnnotateWithInstantHandle.cs │ ├── AnnotateWithItemNotNull.cs │ ├── AnnotateWithLinqTunnel.cs │ ├── AnnotateWithMustDisposeResource.cs │ ├── AnnotateWithMustDisposeResourceBase.cs │ ├── AnnotateWithMustDisposeResourceFalse.cs │ ├── AnnotateWithMustUseReturnValue.cs │ ├── AnnotateWithNonNegativeValue.cs │ ├── AnnotateWithPure.cs │ ├── AnnotateWithValueRange.cs │ └── AnnotateWith[A].cs ├── CodeContracts │ ├── AddContractContextAction.cs │ ├── CollectionAllItemsNotNull.cs │ ├── CollectionCountPositive.cs │ ├── DateTimeTimeOfDayZero.cs │ ├── EnumBetweenFirstAndLast.cs │ ├── EnumFlags.cs │ ├── EnumKnownValues.cs │ ├── GuidNonEmpty.cs │ ├── IntPtrUIntPtr.cs │ ├── IntPtrUIntPtrNonZero.cs │ ├── IntPtrUIntPtrZero.cs │ ├── Internal │ │ ├── CSharpNumericTypeInfo.cs │ │ ├── CSharpNumericTypeInfo[N].cs │ │ ├── ContractInfo.cs │ │ ├── ContractKind.cs │ │ ├── FieldContractInfo.cs │ │ ├── MethodContractInfo.cs │ │ ├── OperatorContractInfo.cs │ │ ├── ParameterContractInfo.cs │ │ └── PropertyContractInfo.cs │ ├── NotNull.cs │ ├── Numeric.cs │ ├── NumericPositive.cs │ ├── NumericZero.cs │ ├── SignedNumeric.cs │ ├── SignedNumericNegative.cs │ ├── SignedNumericNonZero.cs │ ├── SignedNumericZeroOrNegative.cs │ ├── SignedNumericZeroOrPositive.cs │ ├── StringNotNullAndNotEmpty.cs │ ├── TimeSpan.cs │ ├── TimeSpanNegative.cs │ ├── TimeSpanNonZero.cs │ ├── TimeSpanPositive.cs │ ├── TimeSpanZero.cs │ ├── TimeSpanZeroOrNegative.cs │ └── TimeSpanZeroOrPositive.cs ├── ContextAction[N].cs ├── DocComments │ ├── EmbedIntoParamrefName.cs │ ├── EmbedIntoSeeCRef.cs │ ├── EmbedIntoTypeparamrefName.cs │ ├── EmbraceWithCTags.cs │ ├── EncompassInDocComment.cs │ ├── ReflowDocComments.cs │ └── XmlDocCommentContextAction[N].cs ├── InterfaceImplementationDeclarations │ ├── DeclareComparisonOperators.cs │ └── DeclareEqualityOperators.cs ├── RemoveAssertNotNull.cs ├── SetLanguageInjection.cs ├── Strings │ ├── ReplaceIsNullOrEmpty.cs │ ├── ReplaceIsNullOrEmptyWithNegatedListPattern.cs │ ├── ReplaceIsNullOrEmptyWithNegatedObject.cs │ ├── ReplaceIsNullOrEmptyWithNegatedObjectOrEmpty.cs │ ├── ReplaceIsNullOrEmptyWithNegatedObjectOrEmptyList.cs │ ├── ReplaceIsNullOrEmptyWithNullOrEmpty.cs │ └── ReplaceIsNullOrEmptyWithNullOrEmptyList.cs └── ToggleReturnTypeOfAsyncMethods.cs ├── Debug.cs ├── Extensions ├── AttributesOwnerDeclarationExtensions.cs ├── AttributesOwnerExtensions.cs ├── CSharpExpressionExtensions.cs ├── CSharpTreeNodeExtensions.cs ├── CharExtensions.cs ├── DeclarationExtensions.cs ├── DeclaredTypeExtensions.cs ├── ElementProblemAnalyzerDataExtensions.cs ├── InvocationExpressionExtensions.cs ├── KeyValuePairExtensions.cs ├── MethodExtensions.cs ├── MethodFinding │ ├── ArrayParameterType.cs │ ├── GenericParameterType.cs │ ├── MethodFinder.cs │ ├── MethodSignature.cs │ └── ParameterType.cs ├── StringExtensions.cs ├── StructExtensions.cs ├── TreeNodeCollectionExtensions.cs ├── TypeElementExtensions.cs └── TypeExtensions.cs ├── Properties ├── ReCommendedExtension.public.snk └── launchSettings.json ├── ReCommendedExtension.csproj ├── ReadMe.txt └── Zone.cs /Images/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prodot/ReCommended-Extension/b30318662f5645d4092b87a8291977c098fb4274/Images/Icon.png -------------------------------------------------------------------------------- /Images/MulitpleConsumption.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prodot/ReCommended-Extension/b30318662f5645d4092b87a8291977c098fb4274/Images/MulitpleConsumption.png -------------------------------------------------------------------------------- /Images/RedundantAssertion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prodot/ReCommended-Extension/b30318662f5645d4092b87a8291977c098fb4274/Images/RedundantAssertion.png -------------------------------------------------------------------------------- /Sources/.nuget/NuGet.Config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Sources/.nuget/NuGet.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prodot/ReCommended-Extension/b30318662f5645d4092b87a8291977c098fb4274/Sources/.nuget/NuGet.exe -------------------------------------------------------------------------------- /Sources/.nuget/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Deployment/Rider/dependencies.json: -------------------------------------------------------------------------------- 1 | [ 2 | ] -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Deployment/Rider/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prodot/ReCommended-Extension/b30318662f5645d4092b87a8291977c098fb4274/Sources/ReCommendedExtension.Deployment/Rider/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/MissingStringSplitOptions.cs: -------------------------------------------------------------------------------- 1 | namespace ReCommendedExtension.Tests; 2 | 3 | [Flags] 4 | internal enum MissingStringSplitOptions 5 | { 6 | None = StringSplitOptions.None, 7 | RemoveEmptyEntries = StringSplitOptions.RemoveEmptyEntries, 8 | TrimEntries = 2, 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/TestEnvironmentAssembly.cs: -------------------------------------------------------------------------------- 1 | using JetBrains.TestFramework; 2 | using NUnit.Framework; 3 | 4 | [assembly: Apartment(ApartmentState.STA)] 5 | 6 | namespace ReCommendedExtension.Tests; 7 | 8 | [SetUpFixture] 9 | public sealed class TestEnvironmentAssembly : ExtensionTestEnvironmentAssembly; -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/AnnotationQuickFixes/CoerceHigherBoundary.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using JetBrains.Annotations; 3 | 4 | namespace Test 5 | { 6 | internal class Types 7 | { 8 | void Method([ValueRange(10, 0x{caret}FFFF)] byte a) { } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/AnnotationQuickFixes/CoerceHigherBoundary.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using JetBrains.Annotations; 3 | 4 | namespace Test 5 | { 6 | internal class Types 7 | { 8 | void Method([ValueRange(10, byte.MaxValue{caret})] byte a) { } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/AnnotationQuickFixes/CoerceLowerBoundaryForSignedType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using JetBrains.Annotations; 3 | 4 | namespace Test 5 | { 6 | internal class Types 7 | { 8 | void Method([ValueRange(-2_147_{caret}483_648L - 1, 1)] int a) { } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/AnnotationQuickFixes/CoerceLowerBoundaryForSignedType.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using JetBrains.Annotations; 3 | 4 | namespace Test 5 | { 6 | internal class Types 7 | { 8 | void Method([ValueRange(int.MinValue{caret}, 1)] int a) { } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/AnnotationQuickFixes/CoerceLowerBoundaryForUnsignedType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using JetBrains.Annotations; 3 | 4 | namespace Test 5 | { 6 | internal class Types 7 | { 8 | void Method([ValueRange(-1{caret} * 10, 1)] uint a) { } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/AnnotationQuickFixes/CoerceLowerBoundaryForUnsignedType.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using JetBrains.Annotations; 3 | 4 | namespace Test 5 | { 6 | internal class Types 7 | { 8 | void Method([ValueRange({caret}0, 1)] uint a) { } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/AnnotationQuickFixes/Conflicting.cs: -------------------------------------------------------------------------------- 1 | using JetBrains.Annotations; 2 | 3 | namespace Test 4 | { 5 | internal class BaseInterfaceImplementation : IBase 6 | { 7 | [Pure] 8 | [MustUse{caret}ReturnValue] 9 | public int Conflicting() => 0; 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/AnnotationQuickFixes/Conflicting.cs.gold: -------------------------------------------------------------------------------- 1 | using JetBrains.Annotations; 2 | 3 | namespace Test 4 | { 5 | internal class BaseInterfaceImplementation : IBase 6 | { 7 | [Pure]{caret} 8 | public int Conflicting() => 0; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/AnnotationQuickFixes/RedundantAnnotationArgument.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using JetBrains.Annotations; 3 | 4 | namespace Test 5 | { 6 | [MustDisposeResource(tru{caret}e)] 7 | internal class Class : IDisposable 8 | { 9 | public void Dispose() { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/AnnotationQuickFixes/RedundantAnnotationArgument.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using JetBrains.Annotations; 3 | 4 | namespace Test 5 | { 6 | [MustDisposeResource{caret}] 7 | internal class Class : IDisposable 8 | { 9 | public void Dispose() { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/BaseTypeQuickFixes/Class.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal interface ISomeInterface { } 6 | 7 | internal class Class : obj{caret}ect { } 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/BaseTypeQuickFixes/Class.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal interface ISomeInterface { } 6 | 7 | internal class Class 8 | {caret} { } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/BaseTypeQuickFixes/Class_Empty.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal interface ISomeInterface { } 6 | 7 | internal class Class : obje{caret}ct; 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/BaseTypeQuickFixes/Class_Empty.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal interface ISomeInterface { } 6 | 7 | internal class Class{caret}; 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/BaseTypeQuickFixes/Class_Interface.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal interface ISomeInterface { } 6 | 7 | internal class Class : Objec{caret}t, ISomeInterface { } 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/BaseTypeQuickFixes/Class_Interface.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal interface ISomeInterface { } 6 | 7 | internal class Class : {caret}ISomeInterface { } 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/BaseTypeQuickFixes/Class_NonEmpty.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal interface ISomeInterface { } 6 | 7 | internal class Class : obj{caret}ect 8 | { 9 | public void Method() { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/BaseTypeQuickFixes/Class_NonEmpty.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal interface ISomeInterface { } 6 | 7 | internal class Class{caret} 8 | { 9 | public void Method() { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/BaseTypeQuickFixes/Class_PrimaryConstructor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal interface ISomeInterface { } 6 | 7 | internal class Class(int x) : o{caret}bject { } 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/BaseTypeQuickFixes/Class_PrimaryConstructor.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal interface ISomeInterface { } 6 | 7 | internal class Class(int x) 8 | {caret} { } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/BaseTypeQuickFixes/Record_Interface.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal interface ISomeInterface { } 6 | 7 | internal record Record : obj{caret}ect, ISomeInterface { } 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/BaseTypeQuickFixes/Record_Interface.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal interface ISomeInterface { } 6 | 7 | internal record Record : {caret}ISomeInterface { } 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CatchClauseWithoutVariableQuickFixes/CatchClauseWithoutVariable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class CatchClauseWithoutVariable 6 | { 7 | void Method() 8 | { 9 | try { } 10 | catch ({caret}Exception) { }} 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/ArrayWithDefaultValuesInitialization.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class NonGenericClass 4 | { 5 | int[] field = { 0, default, default(int) {caret}}; 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/ArrayWithDefaultValuesInitialization.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class NonGenericClass 4 | { 5 | int[] field = new int[3]{caret}; 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/ArrayWithDefaultValuesInitialization2.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class GenericClass 4 | { 5 | void Method() 6 | { 7 | var variable = new[] { default, default(T) {caret}}; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/ArrayWithDefaultValuesInitialization2.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class GenericClass 4 | { 5 | void Method() 6 | { 7 | var variable = new T[2]{caret}; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/ArrayWithDefaultValuesInitialization3.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class GenericClass 4 | { 5 | void Method() 6 | { 7 | var variable = new T[] { default, default(T) {caret}}; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/ArrayWithDefaultValuesInitialization3.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class GenericClass 4 | { 5 | void Method() 6 | { 7 | var variable = new T[2]{caret}; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/ArrayWithDefaultValuesInitialization4.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace Test 4 | { 5 | public class GenericClass 6 | { 7 | void Method() 8 | { 9 | var variable = new List[3]{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/ArrayWithDefaultValuesInitialization5.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class NonGenericClass 4 | { 5 | int?[] field = { null, null, default {caret}}; 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/ArrayWithDefaultValuesInitialization5.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class NonGenericClass 4 | { 5 | int?[] field = new int?[3]{caret}; 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/ArrayWithDefaultValuesInitialization6.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace Test 4 | { 5 | public class GenericClass 6 | { 7 | void Method() 8 | { 9 | var variable = new List?[3]{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/CollectionInitialization_Array_Target_Array_Field.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TargetArray 4 | { 5 | public class NonGenericClass 6 | { 7 | object[] field5 = new string{caret}[0]; 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/CollectionInitialization_Array_Target_Array_Field.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace TargetArray 4 | { 5 | public class NonGenericClass 6 | { 7 | object[] field5 = {caret}[]; 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/CollectionInitialization_Array_Target_IEnumerable_Field.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace TargetEnumerable 5 | { 6 | public class NonGenericClass 7 | { 8 | IEnumerable field7 = new int{caret}[0]; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/CollectionInitialization_Array_Target_IEnumerable_Field.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace TargetEnumerable 5 | { 6 | public class NonGenericClass 7 | { 8 | IEnumerable field7 = {caret}[]; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/CollectionInitialization_Dictionary_Target_Dictionary_Field.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace TargetDictionary 5 | { 6 | public class NonGenericClass 7 | { 8 | Dictionary field01 = []{caret}; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/CollectionInitialization_Dictionary_Target_Dictionary_Property.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace TargetDictionary 5 | { 6 | public class NonGenericClass 7 | { 8 | Dictionary Property17 => ne{caret}w(); 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/CollectionInitialization_Dictionary_Target_Dictionary_Property.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace TargetDictionary 5 | { 6 | public class NonGenericClass 7 | { 8 | Dictionary Property17 => []{caret}; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/CollectionInitialization_List_Target_IEnumerable_Field.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace TargetEnumerable 5 | { 6 | public class NonGenericClass 7 | { 8 | IEnumerable field02 = ne{caret}w List() { 1, 2, 3 }; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/CollectionInitialization_List_Target_IEnumerable_Field.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace TargetEnumerable 5 | { 6 | public class NonGenericClass 7 | { 8 | IEnumerable field02 = [{caret}1, 2, 3]; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/CollectionInitialization_List_Target_IEnumerable_Field_Empty_1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace TargetEnumerable 5 | { 6 | public class NonGenericClass 7 | { 8 | IEnumerable field01 = ne{caret}w List(); 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/CollectionInitialization_List_Target_IEnumerable_Field_Empty_1.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace TargetEnumerable 5 | { 6 | public class NonGenericClass 7 | { 8 | IEnumerable field01 = []{caret}; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/CollectionInitialization_List_Target_IEnumerable_Field_Empty_2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace TargetEnumerable 5 | { 6 | public class NonGenericClass 7 | { 8 | IEnumerable field03 = ne{caret}w List(8); 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/CollectionInitialization_List_Target_IEnumerable_Field_Empty_2.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace TargetEnumerable 5 | { 6 | public class NonGenericClass 7 | { 8 | IEnumerable field03 = []{caret}; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/EmptyArrayInitialization.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class NonGenericClass 4 | { 5 | int[] field = { {caret}}; 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/EmptyArrayInitialization.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class NonGenericClass 6 | { 7 | int[] field = Array.Empty(){caret}; 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/EmptyArrayInitialization2.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class GenericClass 4 | { 5 | void Method() 6 | { 7 | var array = new T[] {caret}{ }; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/EmptyArrayInitialization2.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class GenericClass 6 | { 7 | void Method() 8 | { 9 | var array = Array.Empty(){caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/EmptyArrayInitialization3.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace Test 4 | { 5 | public class GenericClass 6 | { 7 | void Method() 8 | { 9 | var array = new List[] {caret}{ }; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/EmptyArrayInitialization4.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class NonGenericClass 4 | { 5 | int?[] field = { {caret}}; 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/CollectionQuickFixes/EmptyArrayInitialization4.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class NonGenericClass 6 | { 7 | int?[] field = Array.Empty(){caret}; 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/DelegateInvokeQuickFixes/DelegateInvoke.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class DelegateInvoke 6 | { 7 | void Method(Action action) 8 | { 9 | action.{caret}Invoke(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/DelegateInvokeQuickFixes/DelegateInvoke.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class DelegateInvoke 6 | { 7 | void Method(Action action) 8 | { 9 | action{caret}(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/DelegateInvokeQuickFixes/DelegateInvoke2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class DelegateInvoke 6 | { 7 | void Method(Action action) 8 | { 9 | action . {caret}Invoke(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/DelegateInvokeQuickFixes/DelegateInvoke2.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class DelegateInvoke 6 | { 7 | void Method(Action action) 8 | { 9 | action{caret}(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/DelegateInvokeQuickFixes/DelegateInvokeAvailability.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class DelegateInvoke 6 | { 7 | void Method(Action action) 8 | { 9 | action.Invoke(); 10 | 11 | action . Invoke(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/InternalConstructorQuickFixes/InternalConstructorToPrivateProtected.cs: -------------------------------------------------------------------------------- 1 | namespace ReCommendedExtension.Tests.test.data.Analyzers.InternalConstructor 2 | { 3 | public abstract class InternalConstructor 4 | { 5 | inte{caret}rnal InternalConstructor(string x) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/InternalConstructorQuickFixes/InternalConstructorToPrivateProtected.cs.gold: -------------------------------------------------------------------------------- 1 | namespace ReCommendedExtension.Tests.test.data.Analyzers.InternalConstructor 2 | { 3 | public abstract class InternalConstructor 4 | { 5 | private p{caret}rotected InternalConstructor(string x) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/InternalConstructorQuickFixes/InternalConstructorToProtected.cs: -------------------------------------------------------------------------------- 1 | namespace ReCommendedExtension.Tests.test.data.Analyzers.InternalConstructor 2 | { 3 | internal abstract class InternalConstructor 4 | { 5 | inte{caret}rnal InternalConstructor(string x) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/InternalConstructorQuickFixes/InternalConstructorToProtected.cs.gold: -------------------------------------------------------------------------------- 1 | namespace ReCommendedExtension.Tests.test.data.Analyzers.InternalConstructor 2 | { 3 | internal abstract class InternalConstructor 4 | { 5 | protected{caret} InternalConstructor(string x) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/LinqQuickFixes/UseIndexer_ElementAt_Int32.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace Test 5 | { 6 | public class Class 7 | { 8 | public void Method(IList list) 9 | { 10 | var third = list[{caret}2]; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/LinqQuickFixes/UseIndexer_First.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace Test 5 | { 6 | public class Class 7 | { 8 | public void Method(IList list) 9 | { 10 | var first = list.Fir{caret}st(); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/LinqQuickFixes/UseIndexer_First.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace Test 5 | { 6 | public class Class 7 | { 8 | public void Method(IList list) 9 | { 10 | var first = list[0]{caret}; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/LinqQuickFixes/UseIndexer_First_Nullable.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace Test 5 | { 6 | public class Class 7 | { 8 | public void Method(IList? list) 9 | { 10 | var first = list?.Fir{caret}st(); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/LinqQuickFixes/UseIndexer_First_Nullable.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace Test 5 | { 6 | public class Class 7 | { 8 | public void Method(IList? list) 9 | { 10 | var first = list?[0]{caret}; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/LinqQuickFixes/UseIndexer_Last.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace Test 5 | { 6 | public class Class 7 | { 8 | public void Method(IList list) 9 | { 10 | var last = list.La{caret}st(); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/LinqQuickFixes/UseIndexer_Last.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace Test 5 | { 6 | public class Class 7 | { 8 | public void Method(IList list) 9 | { 10 | var last = list[^1]{caret}; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/LinqQuickFixes/UseIndexer_Last_Nullable.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace Test 5 | { 6 | public class Class 7 | { 8 | public void Method(IList? list) 9 | { 10 | var last = list?.La{caret}st(); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/LinqQuickFixes/UseIndexer_Last_Nullable.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace Test 5 | { 6 | public class Class 7 | { 8 | public void Method(IList? list) 9 | { 10 | var last = list?[^1]{caret}; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/LinqQuickFixes/UseListPattern_Single.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | 4 | namespace Test 5 | { 6 | public class Class 7 | { 8 | public void Method(IList list) 9 | { 10 | var f = list.Sing{caret}le(); 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringBuilderQuickFixes/Append_Char_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | 4 | namespace Test 5 | { 6 | public class StringBuilders 7 | { 8 | public void Append(StringBuilder builder, char c) 9 | { 10 | var result = builder{caret}; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringBuilderQuickFixes/Append_Char_0_Statement.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | 4 | namespace Test 5 | { 6 | public class StringBuilders 7 | { 8 | public void Append(StringBuilder builder, char c) 9 | {{caret} 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringBuilderQuickFixes/Append_Char_0_Statement_Nullable.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | 4 | namespace Test 5 | { 6 | public class StringBuilders 7 | { 8 | public void Append(StringBuilder? builder, char c) 9 | {{caret} 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringBuilderQuickFixes/Append_Object.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | 4 | namespace Test 5 | { 6 | public class StringBuilders 7 | { 8 | public void Append(StringBuilder builder, char c) 9 | { 10 | var result = builder{caret}; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringBuilderQuickFixes/Append_String.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | 4 | namespace Test 5 | { 6 | public class StringBuilders 7 | { 8 | public void Append(StringBuilder builder, char c) 9 | { 10 | var result = builder{caret}; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringBuilderQuickFixes/Replace_Char_Char.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | 4 | namespace Test 5 | { 6 | public class StringBuilders 7 | { 8 | public void Replace(StringBuilder builder) 9 | { 10 | var result = builder{caret}; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringBuilderQuickFixes/Replace_String_String.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Text; 3 | 4 | namespace Test 5 | { 6 | public class StringBuilders 7 | { 8 | public void Replace(StringBuilder builder) 9 | { 10 | var result = builder{caret}; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Contains.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void SingleCharacter(string text) 6 | { 7 | var result = text.Contains("a{caret}"); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Contains.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void SingleCharacter(string text) 6 | { 7 | var result = text.Contains('a'{caret}); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Contains_Empty.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Contains(string text) 6 | { 7 | var result = text.Conta{caret}ins(""); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Contains_Empty.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Contains(string text) 6 | { 7 | var result = true{caret}; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Contains_Empty_Expression.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Contains(object someObject) 8 | { 9 | var result = {caret}true; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Contains_Empty_StringComparison.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Contains(string text) 8 | { 9 | var result = tru{caret}e; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Contains_ParameterName.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void SingleCharacter(string text) 6 | { 7 | var result = text.Contains(value: "{caret}a"); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Contains_ParameterName.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void SingleCharacter(string text) 6 | { 7 | var result = text.Contains(value: '{caret}a'); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_Argument.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void EndsWith(string text, char c) 6 | { 7 | var result = text.Ends{caret}With(c); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_Argument.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void EndsWith(string text, char c) 6 | { 7 | var result = text is [.., var las{caret}tChar] && lastChar == c; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_Argument_ParameterName.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void EndsWith(string text, char c) 6 | { 7 | var result = !text.Ends{caret}With(value: c); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_Argument_ParameterName.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void EndsWith(string text, char c) 6 | { 7 | var result = !(text is [.., var las{caret}tChar] && lastChar == c); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_Char.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void EndsWith(string text, char c) 6 | { 7 | var result = text.Ends{caret}With('a'); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_Char.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void EndsWith(string text, char c) 6 | { 7 | var result = text {caret}is [.., 'a']; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_Char_Constant.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void EndsWith(string text) 6 | { 7 | const char c = 'a'; 8 | var result = text.Ends{caret}With(c); 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_Char_Constant.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void EndsWith(string text) 6 | { 7 | const char c = 'a'; 8 | var result = text {caret}is [.., c]; 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_Char_ParameterName.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void EndsWith(string text, char c) 6 | { 7 | var result = !text.Ends{caret}With(value: 'a'); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_Char_ParameterName.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void EndsWith(string text, char c) 6 | { 7 | var result = !(text {caret}is [.., 'a']); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_Empty.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Contains(string text) 6 | { 7 | var result = text.Ends{caret}With(""); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_Empty.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Contains(string text) 6 | { 7 | var result = true{caret}; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_Empty_StringComparison.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Contains(string text) 8 | { 9 | var result = tru{caret}e; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_String_Ordinal.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void EndsWith(string text, char c) 8 | { 9 | var result = text.Ends{caret}With("a", StringComparison.Ordinal); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_String_Ordinal.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void EndsWith(string text, char c) 8 | { 9 | var result = text{caret} is [.., 'a']; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/EndsWith_String_OrdinalIgnoreCase.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void EndsWith(string text, char c) 8 | { 9 | var result = !(text{caret} is [.., 'a' or 'A']); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOfAny.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOfAny(string text, char[] c) 8 | { 9 | var result = text.IndexOfAny(c, 0{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOfAny.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOfAny(string text, char[] c) 8 | { 9 | var result = text.IndexOfAny(c{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOfAny_CharArray_DuplicateElement.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOfAny(string text) 8 | { 9 | var result = text.IndexOfAny(['a', '{caret}a']); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOfAny_CharArray_DuplicateElement.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOfAny(string text) 8 | { 9 | var result = text.IndexOfAny(['a'{caret}]); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOfAny_CharArray_Empty.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOfAny(string text) 8 | { 9 | var result = text.Index{caret}OfAny([]); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOfAny_CharArray_Empty.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOfAny(string text) 8 | { 9 | var result = -1{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOfAny_CharArray_SingleElement.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOfAny(string text, char c) 8 | { 9 | var result = text.Index{caret}OfAny([c]); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOfAny_CharArray_SingleElement.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOfAny(string text, char c) 8 | { 9 | var result = text.Index{caret}Of(c); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOfAny_ParameterName.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOfAny(string text, char[] c) 8 | { 9 | var result = text.IndexOfAny(c, startI{caret}ndex: 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOfAny_ParameterName.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOfAny(string text, char[] c) 8 | { 9 | var result = text.IndexOfAny(c{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_CharConst_eq_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result12 = text.Index{caret}Of('a') == 0; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_CharConst_eq_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result12 = text is [{caret}'a', ..]; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_CharConst_ne_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result22 = text.Index{caret}Of('a') != 0; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_CharConst_ne_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result22 = text is not [{caret}'a', ..]; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_Int32.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOf(string text, char c) 8 | { 9 | var result = text.IndexOf(c, 0{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_Int32.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOf(string text, char c) 8 | { 9 | var result = text.IndexOf(c{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_Int32_ParameterName.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOf(string text, char c) 8 | { 9 | var result = text.IndexOf(c, startI{caret}ndex: 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_Int32_ParameterName.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOf(string text, char c) 8 | { 9 | var result = text.IndexOf(c{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_eq_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result11 = text.Index{caret}Of(c) == 0; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_eq_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result11 = text is [var firstChar, ..] && {caret}firstChar == c; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_eq_m1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result41 = text.Index{caret}Of(c) == -1; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_eq_m1.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result41 = !text.Contains{caret}(c); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_ge_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result33 = text.Index{caret}Of(c) >= 0; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_ge_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result33 = text.Contains{caret}(c); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_gt_m1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result31 = text.Index{caret}Of(c) > -1; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_gt_m1.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result31 = text.Contains{caret}(c); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_lt_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result42 = text.Index{caret}Of(c) < 0; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_lt_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result42 = !text.Contains{caret}(c); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_ne_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result21 = text.Index{caret}Of(c) != 0; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_ne_m1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result32 = text.Index{caret}Of(c) != -1; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Char_ne_m1.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result32 = text.Contains{caret}(c); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Empty.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text) 8 | { 9 | var result = text.Index{caret}Of(""); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Empty.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text) 8 | { 9 | var result = 0{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_Empty_StringComparison.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text) 8 | { 9 | var result = 0{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_StringAsChar.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text) 8 | { 9 | var result = text.IndexOf("a{caret}"); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_StringAsChar.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text) 8 | { 9 | var result = text.IndexOf('a', StringComparison.CurrentCulture{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_StringAsChar_ParameterName.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text) 8 | { 9 | var result = text.IndexOf(value: "{caret}a"); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_String_Int32.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOf(string text, string s) 8 | { 9 | var result = text.IndexOf(s, 0{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_String_Int32.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOf(string text, string s) 8 | { 9 | var result = text.IndexOf(s{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_String_Int32_ParameterName.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOf(string text, string s) 8 | { 9 | var result = text.IndexOf(s, startI{caret}ndex: 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_String_Int32_ParameterName.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void IndexOf(string text, string s) 8 | { 9 | var result = text.IndexOf(s{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_String_eq_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, string s) 8 | { 9 | var result = text.Index{caret}Of(s) == 0; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_String_eq_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, string s) 8 | { 9 | var result = text.StartsWith{caret}(s); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_String_eq_m1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, string s) 8 | { 9 | var result = text.Index{caret}Of(s) == -1; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_String_ge_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, string s) 8 | { 9 | var result = text.Index{caret}Of(s) >= 0; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_String_gt_m1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, string s) 8 | { 9 | var result = text.Index{caret}Of(s) > -1; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_String_lt_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, string s) 8 | { 9 | var result = text.Index{caret}Of(s) < 0; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_String_ne_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, string s) 8 | { 9 | var result = text.Index{caret}Of(s) != 0; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_String_ne_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, string s) 8 | { 9 | var result = !text.StartsWith{caret}(s); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/IndexOf_String_ne_m1.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, string s) 8 | { 9 | var result = text.Index{caret}Of(s) != -1; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Join_0_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Join(string s, int[] items) 8 | { 9 | var result = string.Join{caret}(s, items, 0, 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Join_0_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Join(string s, int[] items) 8 | { 9 | var result = ""{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Join_EmptyArray.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Join(string s) 8 | { 9 | var result = string.Join{caret}(s, new object[0]); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Join_EmptyArray.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Join(string s) 8 | { 9 | var result = ""{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Join_OneItemArray_1_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Join(string s, int item) 8 | { 9 | var result = string.Join{caret}(s, new[] { item }, 1, 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Join_OneItemArray_1_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Join(string s, int item) 8 | { 9 | var result = ""{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Join_OneItemObjectArray.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Join(string s, object objectItem) 8 | { 9 | var result = string.Join{caret}(s, (object?[])[objectItem]); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Join_OneItemObjectArray.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Join(string s, object objectItem) 8 | { 9 | var result = $"{o{caret}bjectItem}"; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Join_OneItemStringArray.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Join(string s, string stringItem) 8 | { 9 | var result = string.Join{caret}(s, new string?[] { stringItem }); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Join_OneItemStringArray.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Join(string s, string stringItem) 8 | { 9 | var result = string{caret}Item; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Join_OneItemStringArray_0_1.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Join(string s, string stringItem) 8 | { 9 | var result = string{caret}Item; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Join_SingleChar.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Join(string?[] stringItems) 8 | { 9 | var result = string.Join(",{caret}", stringItems); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Join_SingleChar.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Join(string?[] stringItems) 8 | { 9 | var result = string.Join(','{caret}, stringItems); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOfAny_CharArray_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void LastIndexOfAny(string text, char[] chars) 8 | { 9 | var result = text.LastIndex{caret}OfAny(chars, 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOfAny_CharArray_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void LastIndexOfAny(string text, char[] chars) 8 | { 9 | var result = -1{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOfAny_CharArray_0_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void LastIndexOfAny(string text, char[] chars) 8 | { 9 | var result = -1{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOfAny_CharArray_0_1.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void LastIndexOfAny(string text, char[] chars) 8 | { 9 | var result = -{caret}1; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOfAny_CharArray_DuplicateElement.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void LastIndexOfAny(string text) 8 | { 9 | var result = text.LastIndexOfAny(['a', '{caret}a']); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOfAny_CharArray_DuplicateElement.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void LastIndexOfAny(string text) 8 | { 9 | var result = text.LastIndexOfAny(['a'{caret}]); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOfAny_CharArray_Empty.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void LastIndexOfAny(string text) 8 | { 9 | var result = text.LastIndex{caret}OfAny([]); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOfAny_CharArray_Empty.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void LastIndexOfAny(string text) 8 | { 9 | var result = -1{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOfAny_CharArray_SingleElement.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void LastIndexOfAny(string text, char c) 8 | { 9 | var result = text.LastIndex{caret}OfAny([c]); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOfAny_CharArray_SingleElement.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void LastIndexOfAny(string text, char c) 8 | { 9 | var result = text.LastIndex{caret}Of(c); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOf_Char_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result = text.LastIndex{caret}Of(c, 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOf_Char_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text, char c) 8 | { 9 | var result = -1{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOf_Empty.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text) 8 | { 9 | var result = text.LastIndex{caret}Of(""); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOf_Empty.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text) 8 | { 9 | var result = text.Length{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOf_Empty_Nullable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string? text) 8 | { 9 | var result = text?.LastIndex{caret}Of(""); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOf_Empty_Nullable.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string? text) 8 | { 9 | var result = text?.Length{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOf_Empty_StringComparison.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text) 8 | { 9 | var result = text.Le{caret}ngth; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOf_Empty_StringComparison_Nullable.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string? text) 8 | { 9 | var result = text?.Le{caret}ngth; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/LastIndexOf_StringAsChar_Ordinal.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Comparison(string text) 8 | { 9 | var result = text.LastIndexOf('{caret}a'); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/PadLeft_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Invocation(string text) 8 | { 9 | var result = text.Pad{caret}Left(0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/PadLeft_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Invocation(string text) 8 | { 9 | var result = text{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/PadLeft_0_Char.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Invocation(string text, char c) 8 | { 9 | var result = text.Pad{caret}Left(0, c); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/PadLeft_0_Char.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Invocation(string text, char c) 8 | { 9 | var result = text{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/PadLeft_Int32_Space.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Invocation(string text, int totalWidth) 8 | { 9 | var result = text.PadLeft(totalWidth, ' '{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/PadLeft_Int32_Space.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Invocation(string text, int totalWidth) 8 | { 9 | var result = text.PadLeft(totalWidth{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/PadRight_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Invocation(string text) 8 | { 9 | var result = text.Pad{caret}Right(0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/PadRight_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Invocation(string text) 8 | { 9 | var result = text{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/PadRight_0_Char.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Invocation(string text, char c) 8 | { 9 | var result = text.Pad{caret}Right(0, c); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/PadRight_0_Char.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Invocation(string text, char c) 8 | { 9 | var result = text{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/PadRight_Int32_Space.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Invocation(string text, int totalWidth) 8 | { 9 | var result = text.PadRight(totalWidth, ' '{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/PadRight_Int32_Space.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Invocation(string text, int totalWidth) 8 | { 9 | var result = text.PadRight(totalWidth{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Remove_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void ExpressionResult(string text) 8 | { 9 | var result = text.Remove{caret}(0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Remove_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void ExpressionResult(string text) 8 | { 9 | var result = ""{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Remove_0_Int32.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void RangeIndexer(string text, int startIndex, int count) 8 | { 9 | var result = text.Remove{caret}(0, count); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Remove_0_Int32.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void RangeIndexer(string text, int startIndex, int count) 8 | { 9 | var result = text[{caret}count..]; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Remove_0_Int32_Nullable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void RangeIndexer(string? text, int startIndex, int count) 8 | { 9 | var result = text?.Remove{caret}(0, count); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Remove_0_Int32_Nullable.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void RangeIndexer(string? text, int startIndex, int count) 8 | { 9 | var result = text?[{caret}count..]; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Remove_Int32.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void RangeIndexer(string text, int startIndex, int count) 8 | { 9 | var result = text.Remove{caret}(startIndex); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Remove_Int32.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void RangeIndexer(string text, int startIndex, int count) 8 | { 9 | var result = text[..{caret}startIndex]; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Replace_Char_Char_Identical.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void SingleCharacters(string text) 8 | { 9 | var result = text.Replace{caret}('a', 'a'); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Replace_Char_Char_Identical.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void SingleCharacters(string text) 8 | { 9 | var result = text{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Replace_String_String.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void SingleCharacters(string text) 8 | { 9 | var result = text.Replace("{caret}a", "b"); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Replace_String_String.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void SingleCharacters(string text) 8 | { 9 | var result = text.Replace('{caret}a', 'b'); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Replace_String_String_Identical.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void SingleCharacters(string text) 8 | { 9 | var result = text.Replace{caret}("aa", "aa"); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Replace_String_String_Identical.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void SingleCharacters(string text) 8 | { 9 | var result = text{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Replace_String_String_Ordinal.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void SingleCharacters(string text) 8 | { 9 | var result = text.Replace('{caret}a', 'b'); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Replace_String_String_Ordinal_Identical.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void SingleCharacters(string text) 8 | { 9 | var result = text{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Split_ArrayWithOneItem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void EmptyArray(string text) 8 | { 9 | var result = text.Split{caret}('a', 1); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Split_ArrayWithOneItem.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void EmptyArray(string text) 8 | { 9 | var result = new[] { text{caret} }; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Split_ArrayWithOneItem_CollectionExpression.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void EmptyArray(string text) 8 | { 9 | string[] result = text.Split{caret}('a', 1); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Split_ArrayWithOneItem_CollectionExpression.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void EmptyArray(string text) 8 | { 9 | string[] result = [text]{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Split_ArrayWithOneTrimmedItem.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void EmptyArray(string text) 8 | { 9 | var result = new[]{caret} { text.Trim() }; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Split_DuplicateArgument.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void EmptyArray(string text) 8 | { 9 | var result = text.Split('a', 'b', 'a{caret}'); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Split_DuplicateArgument.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void EmptyArray(string text) 8 | { 9 | var result = text.Split('a', 'b'{caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Split_EmptyArray.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void EmptyArray(string text) 8 | { 9 | var result = text.Split{caret}('a', 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Split_EmptyArray.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void EmptyArray(string text) 8 | { 9 | var result = Array.Empty{caret}(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Split_EmptyArray_CollectionExpression.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void EmptyArray(string text) 8 | { 9 | string[] result = text.Split{caret}('a', 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Split_EmptyArray_CollectionExpression.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void EmptyArray(string text) 8 | { 9 | string[] result = []{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/StartsWith_Argument.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void StartsWith(string text, char c) 6 | { 7 | var result = text.Starts{caret}With(c); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/StartsWith_Argument.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void StartsWith(string text, char c) 6 | { 7 | var result = text is [var firstChar, ..] && f{caret}irstChar == c; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/StartsWith_Argument_ParameterName.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void StartsWith(string text, char c) 6 | { 7 | var result = !text.Starts{caret}With(value: c); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/StartsWith_Argument_ParameterName.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void StartsWith(string text, char c) 6 | { 7 | var result = !(text is [var firstChar, ..] && f{caret}irstChar == c); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/StartsWith_Char.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void StartsWith(string text, char c) 6 | { 7 | var result = text.Starts{caret}With('a'); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/StartsWith_Char.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void StartsWith(string text, char c) 6 | { 7 | var result = text {caret}is ['a', ..]; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/StartsWith_Char_ParameterName.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void StartsWith(string text, char c) 6 | { 7 | var result = !text.Starts{caret}With(value: 'a'); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/StartsWith_Char_ParameterName.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void StartsWith(string text, char c) 6 | { 7 | var result = !(text {caret}is ['a', ..]); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/StartsWith_Empty.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Contains(string text) 6 | { 7 | var result = text.Starts{caret}With(""); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/StartsWith_Empty.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Contains(string text) 6 | { 7 | var result = true{caret}; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/StartsWith_Empty_StringComparison.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Contains(string text) 8 | { 9 | var result = tru{caret}e; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/StartsWith_String_Ordinal.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void StartsWith(string text, char c) 8 | { 9 | var result = text {caret}is ['a', ..]; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Substring_0.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Substring(string text) 8 | { 9 | var result = text.Sub{caret}string(0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Substring_0.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void Substring(string text) 8 | { 9 | var result = text{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/ToString_IFormatProvider.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void RedundantInvocation(string text, IFormatProvider provider) 8 | { 9 | var result1 = text{caret}; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimEnd_DuplicateArgument.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.TrimEnd('a', 'b', 'a{caret}'); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimEnd_DuplicateArgument.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.TrimEnd('a', 'b'{caret}); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimEnd_DuplicateElement.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.TrimEnd(new[] { 'a', 'b', 'a{caret}' }); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimEnd_DuplicateElement.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.TrimEnd(new[] { 'a', 'b'{caret} }); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimEnd_DuplicateElement_CollectionExpression.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.TrimEnd(['a', 'b', 'a{caret}']); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimEnd_DuplicateElement_CollectionExpression.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.TrimEnd(['a', 'b'{caret}]); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimEnd_Empty.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.TrimEnd([{caret}]); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimEnd_Empty.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.TrimEnd({caret}); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimEnd_EmptyArray_3.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void RedundantArgument(string text) 8 | { 9 | var result = text.TrimEnd(Array.Empty{caret}()); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimEnd_EmptyArray_3.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void RedundantArgument(string text) 8 | { 9 | var result = text.TrimEnd({caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimEnd_Null.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.TrimEnd(nu{caret}ll); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimEnd_Null.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.TrimEnd({caret}); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimStart_DuplicateArgument.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.TrimStart('a', 'b', 'a{caret}'); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimStart_DuplicateArgument.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.TrimStart('a', 'b'{caret}); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimStart_DuplicateElement.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.TrimStart(new[] { 'a', 'b', 'a{caret}' }); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimStart_DuplicateElement.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.TrimStart(new[] { 'a', 'b'{caret} }); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimStart_DuplicateElement_CollectionExpression.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.TrimStart(['a', 'b', 'a{caret}']); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimStart_DuplicateElement_CollectionExpression.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.TrimStart(['a', 'b'{caret}]); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimStart_Empty.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.TrimStart([{caret}]); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimStart_Empty.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.TrimStart({caret}); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimStart_EmptyArray_3.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void RedundantArgument(string text) 8 | { 9 | var result = text.TrimStart(Array.Empty{caret}()); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimStart_EmptyArray_3.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void RedundantArgument(string text) 8 | { 9 | var result = text.TrimStart({caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimStart_Null.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.TrimStart(nu{caret}ll); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/TrimStart_Null.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.TrimStart({caret}); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_DuplicateArgument.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.Trim('a', 'b', 'a{caret}'); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_DuplicateArgument.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.Trim('a', 'b'{caret}); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_DuplicateElement.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.Trim(new[] { 'a', 'b', 'a{caret}' }); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_DuplicateElement.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.Trim(new[] { 'a', 'b'{caret} }); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_DuplicateElement_CollectionExpression.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.Trim(['a', 'b', 'a{caret}']); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_DuplicateElement_CollectionExpression.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result11 = text.Trim(['a', 'b'{caret}]); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_Empty.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.Trim([{caret}]); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_Empty.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.Trim({caret}); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_EmptyArray.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.Trim(new {caret}char[0]); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_EmptyArray.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.Trim({caret}); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_EmptyArray_2.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.Trim(new {caret}char[] { }); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_EmptyArray_2.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.Trim({caret}); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_EmptyArray_3.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void RedundantArgument(string text) 8 | { 9 | var result = text.Trim(Array.Empty{caret}()); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_EmptyArray_3.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | public class Strings 6 | { 7 | public void RedundantArgument(string text) 8 | { 9 | var result = text.Trim({caret}); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_Null.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.Trim(nu{caret}ll); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/Analyzers/StringsQuickFixes/Trim_Null.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void RedundantArgument(string text) 6 | { 7 | var result = text.Trim({caret}); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithAttributeUsage/Execute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Some{caret}Attribute : Attribute { } 6 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithAttributeUsage/Execute.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | [AttributeUsage({caret})] 6 | internal class SomeAttribute : Attribute { } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithDefaultEqualityUsage/ExecuteClassTypeParameter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Test 5 | { 6 | internal class Class { } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithDefaultEqualityUsage/ExecuteClassTypeParameter.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using JetBrains.Annotations; 4 | 5 | namespace Test 6 | { 7 | internal class Class<[DefaultEqualityUsage] T{caret}> { } 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithDefaultEqualityUsage/ExecuteMethodParameter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Test 5 | { 6 | internal class Execute 7 | { 8 | void Method(T o{caret}ne) { } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithDefaultEqualityUsage/ExecuteMethodReturnValue.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Test 5 | { 6 | internal class Execute 7 | { 8 | T Meth{caret}od() 9 | { 10 | return default; 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithDefaultEqualityUsage/ExecuteMethodTypeParameter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Test 5 | { 6 | internal class Execute 7 | { 8 | void Method(U one) { } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithDefaultEqualityUsage/ExecutePositionalRecordParameter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Test 5 | { 6 | internal record Execute(T O{caret}ne); 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithDefaultEqualityUsage/ExecutePositionalRecordParameter.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using JetBrains.Annotations; 4 | 5 | namespace Test 6 | { 7 | internal record Execute([DefaultEqualityUsage] T O{caret}ne); 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithDefaultEqualityUsage/ExecutePrimaryConstructorParameter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Test 5 | { 6 | internal class Execute(T o{caret}ne); 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithDefaultEqualityUsage/ExecutePrimaryConstructorParameter.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using JetBrains.Annotations; 4 | 5 | namespace Test 6 | { 7 | internal class Execute([DefaultEqualityUsage] T o{caret}ne); 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithHandlesResourceDisposal/ExecuteField.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading.Tasks; 3 | 4 | namespace Test 5 | { 6 | internal class TestClass 7 | { 8 | IDisposable disposab{caret}le; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithHandlesResourceDisposal/ExecuteField.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading.Tasks; 3 | using JetBrains.Annotations; 4 | 5 | namespace Test 6 | { 7 | internal class TestClass 8 | { 9 | [HandlesResourceDisposal] IDisposable disposab{caret}le; 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithHandlesResourceDisposal/ExecuteMethod.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading.Tasks; 3 | 4 | namespace Test 5 | { 6 | internal class DisposableClass : IDisposable 7 | { 8 | public void Dispose() { } 9 | 10 | public void Clo{caret}se() { } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithHandlesResourceDisposal/ExecuteParameter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading.Tasks; 3 | 4 | namespace Test 5 | { 6 | internal class TestClass 7 | { 8 | public void Disposable(IDisposable p{caret}0) => throw new NotImplementedException(); 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithHandlesResourceDisposal/ExecuteProperty.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading.Tasks; 3 | 4 | namespace Test 5 | { 6 | internal class TestClass 7 | { 8 | public IDisposable Disposab{caret}le { get; set; } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithIgnoreSpellingAndGrammarErrors/Execute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class SomeClass 6 | { 7 | public void ParameterTypes(string p{caret}0) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithIgnoreSpellingAndGrammarErrors/Execute.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using JetBrains.Annotations; 3 | 4 | namespace Test 5 | { 6 | internal class SomeClass 7 | { 8 | public void ParameterTypes([IgnoreSpellingAndGrammarErrors] string p{caret}0) { } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithInstantHandle/ExecuteAsyncEnumerable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Test 5 | { 6 | internal class ExecuteGenericEnumerable 7 | { 8 | void Method(IAsyncEnumerable o{caret}ne) { } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithInstantHandle/ExecuteDelegate.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Test 5 | { 6 | internal class ExecuteDelegate 7 | { 8 | void Method(Action tw{caret}o) { } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithInstantHandle/ExecuteDelegate.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using JetBrains.Annotations; 4 | 5 | namespace Test 6 | { 7 | internal class ExecuteDelegate 8 | { 9 | void Method([InstantHandle] Action tw{caret}o) { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithInstantHandle/ExecuteGenericEnumerable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | 4 | namespace Test 5 | { 6 | internal class ExecuteGenericEnumerable 7 | { 8 | void Method(IEnumerable o{caret}ne) { } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithLinqTunnel/Execute.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace Test 4 | { 5 | internal class Execute 6 | { 7 | IEnumerable Meth{caret}od(IEnumerable arg) => null; 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithLinqTunnel/Execute.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using JetBrains.Annotations; 3 | 4 | namespace Test 5 | { 6 | internal class Execute 7 | { 8 | [LinqTunnel] 9 | IEnumerable Meth{caret}od(IEnumerable arg) => null; 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithLinqTunnel/ExecuteAsyncEnumerable.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace Test 4 | { 5 | internal class Execute 6 | { 7 | IAsyncEnumerable Meth{caret}od(IAsyncEnumerable arg) => null; 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustDisposeResource/ExecuteConstructor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Types 4 | { 5 | class DisposableClass : IDisposable 6 | { 7 | public Disposable{caret}Class() { } 8 | 9 | public void Dispose() { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustDisposeResource/ExecuteMethod.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Types 4 | { 5 | class Test 6 | { 7 | public IDisposable IDisposable{caret}Method() => throw new NotImplementedException(); 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustDisposeResource/ExecuteMethod_Pure.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using JetBrains.Annotations; 3 | 4 | namespace Types 5 | { 6 | class Test 7 | { 8 | [Pure] 9 | public IDisposable IDisposable{caret}Method() => throw new NotImplementedException(); 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustDisposeResource/ExecuteParameter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Types 4 | { 5 | class Test 6 | { 7 | public void MethodOutput(out IDisposable p{caret}1) => throw new NotImplementedException(); 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustDisposeResource/ExecutePrimaryConstructor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Types 4 | { 5 | class DisposableClass({caret}) : IDisposable 6 | { 7 | public void Dispose() { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustDisposeResource/ExecutePrimaryConstructor.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using JetBrains.Annotations; 3 | 4 | namespace Types 5 | { 6 | [method: MustDisposeResource] 7 | class DisposableClass({caret}) : IDisposable 8 | { 9 | public void Dispose() { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustDisposeResource/ExecuteType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Types 4 | { 5 | class Disposable{caret}Class : IDisposable 6 | { 7 | public DisposableClass() { } 8 | 9 | public void Dispose() { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustDisposeResourceFalse/ExecuteConstructor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Types 4 | { 5 | class DisposableClass : IDisposable 6 | { 7 | public Disposable{caret}Class() { } 8 | 9 | public void Dispose() { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustDisposeResourceFalse/ExecuteMethod.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Types 4 | { 5 | class Test 6 | { 7 | public IDisposable IDisposable{caret}Method() => throw new NotImplementedException(); 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustDisposeResourceFalse/ExecuteMethod_Pure.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using JetBrains.Annotations; 3 | 4 | namespace Types 5 | { 6 | class Test 7 | { 8 | [Pure] 9 | public IDisposable IDisposable{caret}Method() => throw new NotImplementedException(); 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustDisposeResourceFalse/ExecuteParameter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Types 4 | { 5 | class Test 6 | { 7 | public void MethodOutput(out IDisposable p{caret}1) => throw new NotImplementedException(); 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustDisposeResourceFalse/ExecutePrimaryConstructor.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Types 4 | { 5 | class DisposableClass({caret}) : IDisposable 6 | { 7 | public void Dispose() { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustDisposeResourceFalse/ExecuteType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Types 4 | { 5 | class Disposable{caret}Class : IDisposable 6 | { 7 | public DisposableClass() { } 8 | 9 | public void Dispose() { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustUseReturnValue/ExecuteMethod.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteNonPureMethod 4 | { 5 | string Meth{caret}od() => null; 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustUseReturnValue/ExecuteMethod.cs.gold: -------------------------------------------------------------------------------- 1 | using JetBrains.Annotations; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteNonPureMethod 6 | { 7 | [MustUseReturnValue] 8 | string Meth{caret}od() => null; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustUseReturnValue/ExecuteMethod_Pure.cs: -------------------------------------------------------------------------------- 1 | using JetBrains.Annotations; 2 | 3 | namespace Test 4 | { 5 | internal class ExecutePureMethod 6 | { 7 | [Pure] 8 | string Meth{caret}od() => null; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithMustUseReturnValue/ExecuteMethod_Pure.cs.gold: -------------------------------------------------------------------------------- 1 | using JetBrains.Annotations; 2 | 3 | namespace Test 4 | { 5 | internal class ExecutePureMethod 6 | { 7 | [MustUseReturnValue] 8 | string Meth{caret}od() => null; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithNonNegativeValue/Execute.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Types 4 | { 5 | void Method(int {caret}arg) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithNonNegativeValue/Execute.cs.gold: -------------------------------------------------------------------------------- 1 | using JetBrains.Annotations; 2 | 3 | namespace Test 4 | { 5 | internal class Types 6 | { 7 | void Method([NonNegativeValue] int {caret}arg) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithNonNegativeValue/ExecuteLambda.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Types 6 | { 7 | void Method() 8 | { 9 | var lambda = (int fi{caret}rst) => { }; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithNonNegativeValue/ExecuteLambda2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Types 6 | { 7 | void Method() 8 | { 9 | Action lambda = fi{caret}rst => { }; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithPure/ExecuteMethod.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteNotAnnotatedMethod 4 | { 5 | void Meth{caret}od(out int one) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithPure/ExecuteMethod.cs.gold: -------------------------------------------------------------------------------- 1 | using JetBrains.Annotations; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteNotAnnotatedMethod 6 | { 7 | [Pure] 8 | void Meth{caret}od(out int one) { } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithPure/ExecuteMethod_MustDisposeResource.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using JetBrains.Annotations; 3 | 4 | namespace Test 5 | { 6 | internal class ExecuteAnnotatedMethod 7 | { 8 | [Pure] 9 | int Meth{caret}od() => throw new NotImplementedException(); 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithPure/ExecuteMethod_MustUseReturnValue.cs: -------------------------------------------------------------------------------- 1 | using JetBrains.Annotations; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteAnnotatedMethod 6 | { 7 | [MustUseReturnValue] 8 | string Meth{caret}od() => null; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithPure/ExecuteMethod_MustUseReturnValue.cs.gold: -------------------------------------------------------------------------------- 1 | using JetBrains.Annotations; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteAnnotatedMethod 6 | { 7 | [Pure] 8 | string Meth{caret}od() => null; 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithValueRange/Execute.cs: -------------------------------------------------------------------------------- 1 | using JetBrains.Annotations; 2 | 3 | namespace Test 4 | { 5 | internal class Types 6 | { 7 | void Method([ValueRange(1,5)] int {caret}arg) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithValueRange/Execute.cs.gold: -------------------------------------------------------------------------------- 1 | using JetBrains.Annotations; 2 | 3 | namespace Test 4 | { 5 | internal class Types 6 | { 7 | void Method([ValueRange(1,5)] [ValueRange({caret})] int arg) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithValueRange/ExecuteLambda.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Types 6 | { 7 | void Method() 8 | { 9 | var lambda = (int fi{caret}rst) => { }; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/AnnotateWithValueRange/ExecuteLambda2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Types 6 | { 7 | void Method() 8 | { 9 | Action lambda = fi{caret}rst => { }; 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Field/Availability.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Availability 4 | { 5 | string field{on}; 6 | 7 | static string field{off}; 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Field/ExecuteWithoutContractInvariantMethod.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Execute 4 | { 5 | string field{caret}; 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Method/ExecuteWithAbstractMethod.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Class 4 | { 5 | internal abstract class AbstractClass where T : class 6 | { 7 | internal abstract T AbstractMethod{caret}(); 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Method/ExecuteWithEmptyMethod.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Class 4 | { 5 | internal string Method{caret}() { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Operator/ExecuteConversion.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Class 4 | { 5 | public static explicit operator{caret} string(Class parameter) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Operator/ExecuteOverload.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Class 4 | { 5 | public static string operator{caret} +(Class x, Class y) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Operator/ExecuteOverloadNonEmpty.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Class 4 | { 5 | public static string operator{caret} +(Class x, Class y) 6 | { 7 | return ""; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Parameter/ExecuteWithAbstractIndexer.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal abstract class AbstractClass 4 | { 5 | internal abstract int this[string one{caret}] { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Parameter/ExecuteWithAbstractMethod.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal abstract class AbstractClass 4 | { 5 | internal abstract void AbstractMethod(string one{caret}); 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Parameter/ExecuteWithEmptyMethod.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Class 4 | { 5 | internal void Method(string one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Parameter/ExecuteWithInterfaceIndexer.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal interface IInterface 4 | { 5 | int this[string one{caret}] { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Parameter/ExecuteWithInterfaceMethod.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal interface IInterface 4 | { 5 | void InterfaceMethod(string one{caret}); 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Parameter/ExecuteWithOutParameter.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Class 4 | { 5 | internal void Method(out string three{caret}) 6 | 7 | { 8 | three = ""; 9 | } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Parameter/ExecuteWithRefParameter.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Class 4 | { 5 | internal void Method(ref string two{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Property/ExecuteAutoProperty.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Class 4 | { 5 | string AutoProperty{caret} { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Property/ExecuteReadOnlyProperty.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Class 4 | { 5 | string ReadOnlyProperty{caret} 6 | { 7 | get 8 | { 9 | return ""; 10 | } 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Property/ExecuteWithAbstractIndexer.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal abstract class AbstractClass 4 | { 5 | internal abstract string this{caret}[int one] { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Property/ExecuteWithAbstractIndexer3.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal abstract class AbstractClass 4 | { 5 | internal abstract string this{caret}[int one] { get; } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Property/ExecuteWithAbstractIndexer4.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal abstract class AbstractClass 4 | { 5 | internal abstract string this{caret}[int one] { set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Property/ExecuteWithAbstractProperty.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal abstract class AbstractClass 4 | { 5 | internal abstract string AbstractProperty{caret} { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Property/ExecuteWithAbstractProperty3.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal abstract class AbstractClass 4 | { 5 | internal abstract string AbstractProperty{caret} { get; } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Property/ExecuteWithAbstractProperty4.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal abstract class AbstractClass 4 | { 5 | internal abstract string AbstractProperty{caret} { set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Property/ExecuteWithInterfaceIndexer.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal interface IInterface 4 | { 5 | string this{caret}[int one] { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Property/ExecuteWithInterfaceProperty.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal interface IInterface 4 | { 5 | string InterfaceProperty{caret} { get; set; } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Property/ExecuteWithReadOnlyIndexer.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Class 4 | { 5 | string this{caret}[int one] 6 | { 7 | get 8 | { 9 | return ""; 10 | } 11 | } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Property/ExecuteWithWriteOnlyIndexer.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Class 4 | { 5 | string this{caret}[int one] 6 | { 7 | set { } 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Elements/Property/ExecuteWriteOnlyProperty.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Class 4 | { 5 | string ReadOnlyProperty{caret} 6 | { 7 | set { } 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/CollectionAllItemsNotNull/ExecuteArray.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | 5 | namespace Test 6 | { 7 | internal class ExecuteArray 8 | { 9 | void Method(string[] two{caret}) { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/CollectionAllItemsNotNull/ExecuteCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | 5 | namespace Test 6 | { 7 | internal class ExecuteCollection 8 | { 9 | void Method(ICollection four{caret}) { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/CollectionCountPositive/ExecuteArray.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | 5 | namespace Test 6 | { 7 | internal class ExecuteArray 8 | { 9 | void Method(string[] two{caret}) { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/CollectionCountPositive/ExecuteArrayType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | 5 | namespace Test 6 | { 7 | internal class ExecuteArrayType 8 | { 9 | void Method(Array five{caret}) { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/CollectionCountPositive/ExecuteCollection.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | 5 | namespace Test 6 | { 7 | internal class ExecuteCollection 8 | { 9 | void Method(ICollection four{caret}) { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/DateTimeTimeOfDayZero/Availability.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Availability 6 | { 7 | void Available(DateTime one{on}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/DateTimeTimeOfDayZero/Execute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Execute 6 | { 7 | void Method(DateTime one{caret}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/GuidNonEmpty/Availability.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Availability 6 | { 7 | void Available(Guid one{on}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/GuidNonEmpty/Execute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Execute 6 | { 7 | void Method(Guid one{caret}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/IntPtrUIntPtrNonZero/Availability.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Availability 6 | { 7 | void Available(IntPtr one{on}, UIntPtr two{on}) { } 8 | 9 | void NotAvailable(int one{off}) { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/IntPtrUIntPtrNonZero/ExecuteIntPtr.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteIntPtr 6 | { 7 | void Method(IntPtr one{caret}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/IntPtrUIntPtrNonZero/ExecuteUIntPtr.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteUIntPtr 6 | { 7 | void Method(UIntPtr two{caret}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/IntPtrUIntPtrZero/Availability.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Availability 6 | { 7 | void Available(IntPtr one{on}, UIntPtr two{on}) { } 8 | 9 | void NotAvailable(int one{off}) { } 10 | } 11 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/IntPtrUIntPtrZero/ExecuteIntPtr.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteIntPtr 6 | { 7 | void Method(IntPtr one{caret}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/IntPtrUIntPtrZero/ExecuteUIntPtr.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteUIntPtr 6 | { 7 | void Method(UIntPtr two{caret}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NotNull/Availability.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Availability 4 | { 5 | void Available(string one{on}) { } 6 | 7 | void NotAvailable(int one{off}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NotNull/Execute.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Execute 4 | { 5 | void Method(string one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteByte.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteByte 4 | { 5 | void Method(byte one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteByte.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteByte 6 | { 7 | void Method(byte one{caret}) 8 | { 9 | Contract.Requires(one > 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteDecimal.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteDecimal 4 | { 5 | void Method(decimal one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteDouble.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteDouble 4 | { 5 | void Method(double one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteDouble.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteDouble 6 | { 7 | void Method(double one{caret}) 8 | { 9 | Contract.Requires(one > 0d); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteFloat.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteFloat 4 | { 5 | void Method(float one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteFloat.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteFloat 6 | { 7 | void Method(float one{caret}) 8 | { 9 | Contract.Requires(one > 0f); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteInt.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteInt 4 | { 5 | void Method(int one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteInt.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteInt 6 | { 7 | void Method(int one{caret}) 8 | { 9 | Contract.Requires(one > 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteLong.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteLong 4 | { 5 | void Method(long one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteLong.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteLong 6 | { 7 | void Method(long one{caret}) 8 | { 9 | Contract.Requires(one > 0L); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteSbyte.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteSbyte 4 | { 5 | void Method(sbyte one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteSbyte.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteSbyte 6 | { 7 | void Method(sbyte one{caret}) 8 | { 9 | Contract.Requires(one > 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteShort.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteShort 4 | { 5 | void Method(short one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteShort.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteShort 6 | { 7 | void Method(short one{caret}) 8 | { 9 | Contract.Requires(one > 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteUInt.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteUInt 4 | { 5 | void Method(uint one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteUInt.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteUInt 6 | { 7 | void Method(uint one{caret}) 8 | { 9 | Contract.Requires(one > 0u); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteUlong.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteUlong 4 | { 5 | void Method(ulong one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteUlong.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteUlong 6 | { 7 | void Method(ulong one{caret}) 8 | { 9 | Contract.Requires(one > 0ul); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteUshort.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteUshort 4 | { 5 | void Method(ushort one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericPositive/ExecuteUshort.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteUshort 6 | { 7 | void Method(ushort one{caret}) 8 | { 9 | Contract.Requires(one > 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteByte.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteByte 4 | { 5 | void Method(byte one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteByte.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteByte 6 | { 7 | void Method(byte one{caret}) 8 | { 9 | Contract.Requires(one == 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteDecimal.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteDecimal 4 | { 5 | void Method(decimal one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteDecimal.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteDecimal 6 | { 7 | void Method(decimal one{caret}) 8 | { 9 | Contract.Requires(one == 0m); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteDouble.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteDouble 4 | { 5 | void Method(double one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteFloat.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteFloat 4 | { 5 | void Method(float one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteInt.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteInt 4 | { 5 | void Method(int one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteInt.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteInt 6 | { 7 | void Method(int one{caret}) 8 | { 9 | Contract.Requires(one == 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteLong.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteLong 4 | { 5 | void Method(long one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteLong.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteLong 6 | { 7 | void Method(long one{caret}) 8 | { 9 | Contract.Requires(one == 0L); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteSbyte.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteSbyte 4 | { 5 | void Method(sbyte one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteSbyte.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteSbyte 6 | { 7 | void Method(sbyte one{caret}) 8 | { 9 | Contract.Requires(one == 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteShort.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteShort 4 | { 5 | void Method(short one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteShort.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteShort 6 | { 7 | void Method(short one{caret}) 8 | { 9 | Contract.Requires(one == 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteUInt.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteUInt 4 | { 5 | void Method(uint one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteUInt.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteUInt 6 | { 7 | void Method(uint one{caret}) 8 | { 9 | Contract.Requires(one == 0u); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteUlong.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteUlong 4 | { 5 | void Method(ulong one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteUlong.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteUlong 6 | { 7 | void Method(ulong one{caret}) 8 | { 9 | Contract.Requires(one == 0ul); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteUshort.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteUshort 4 | { 5 | void Method(ushort one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/NumericZero/ExecuteUshort.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteUshort 6 | { 7 | void Method(ushort one{caret}) 8 | { 9 | Contract.Requires(one == 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNegative/ExecuteDecimal.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteDecimal 4 | { 5 | void Method(decimal one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNegative/ExecuteDouble.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteDouble 4 | { 5 | void Method(double one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNegative/ExecuteFloat.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteFloat 4 | { 5 | void Method(float one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNegative/ExecuteInt.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteInt 4 | { 5 | void Method(int one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNegative/ExecuteInt.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteInt 6 | { 7 | void Method(int one{caret}) 8 | { 9 | Contract.Requires(one < 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNegative/ExecuteLong.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteLong 4 | { 5 | void Method(long one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNegative/ExecuteLong.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteLong 6 | { 7 | void Method(long one{caret}) 8 | { 9 | Contract.Requires(one < 0L); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNegative/ExecuteSbyte.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteSbyte 4 | { 5 | void Method(sbyte one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNegative/ExecuteShort.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteShort 4 | { 5 | void Method(short one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNonZero/ExecuteDecimal.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteDecimal 4 | { 5 | void Method(decimal one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNonZero/ExecuteDouble.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteDouble 4 | { 5 | void Method(double one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNonZero/ExecuteFloat.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteFloat 4 | { 5 | void Method(float one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNonZero/ExecuteInt.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteInt 4 | { 5 | void Method(int one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNonZero/ExecuteInt.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteInt 6 | { 7 | void Method(int one{caret}) 8 | { 9 | Contract.Requires(one != 0); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNonZero/ExecuteLong.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteLong 4 | { 5 | void Method(long one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNonZero/ExecuteLong.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Diagnostics.Contracts; 2 | 3 | namespace Test 4 | { 5 | internal class ExecuteLong 6 | { 7 | void Method(long one{caret}) 8 | { 9 | Contract.Requires(one != 0L); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNonZero/ExecuteSbyte.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteSbyte 4 | { 5 | void Method(sbyte one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericNonZero/ExecuteShort.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteShort 4 | { 5 | void Method(short one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericZeroOrNegative/ExecuteDecimal.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteDecimal 4 | { 5 | void Method(decimal one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericZeroOrNegative/ExecuteDouble.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteDouble 4 | { 5 | void Method(double one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericZeroOrNegative/ExecuteFloat.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteFloat 4 | { 5 | void Method(float one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericZeroOrNegative/ExecuteInt.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteInt 4 | { 5 | void Method(int one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericZeroOrNegative/ExecuteLong.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteLong 4 | { 5 | void Method(long one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericZeroOrNegative/ExecuteSbyte.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteSbyte 4 | { 5 | void Method(sbyte one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericZeroOrNegative/ExecuteShort.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteShort 4 | { 5 | void Method(short one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericZeroOrPositive/ExecuteDecimal.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteDecimal 4 | { 5 | void Method(decimal one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericZeroOrPositive/ExecuteDouble.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteDouble 4 | { 5 | void Method(double one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericZeroOrPositive/ExecuteFloat.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteFloat 4 | { 5 | void Method(float one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericZeroOrPositive/ExecuteInt.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteInt 4 | { 5 | void Method(int one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericZeroOrPositive/ExecuteLong.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteLong 4 | { 5 | void Method(long one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericZeroOrPositive/ExecuteSbyte.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteSbyte 4 | { 5 | void Method(sbyte one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/SignedNumericZeroOrPositive/ExecuteShort.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class ExecuteShort 4 | { 5 | void Method(short one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/StringNotNullAndNotEmpty/Availability.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Availability 4 | { 5 | void Available(string one{on}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/StringNotNullAndNotEmpty/Execute.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | internal class Execute 4 | { 5 | void Method(string one{caret}) { } 6 | } 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/TimeSpanNegative/Availability.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Availability 6 | { 7 | void Available(TimeSpan one{on}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/TimeSpanNegative/Execute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Execute 6 | { 7 | void Method(TimeSpan one{caret}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/TimeSpanNonZero/Availability.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Availability 6 | { 7 | void Available(TimeSpan one{on}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/TimeSpanNonZero/Execute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Execute 6 | { 7 | void Method(TimeSpan one{caret}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/TimeSpanPositive/Availability.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Availability 6 | { 7 | void Available(TimeSpan one{on}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/TimeSpanPositive/Execute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Execute 6 | { 7 | void Method(TimeSpan one{caret}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/TimeSpanZero/Availability.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Availability 6 | { 7 | void Available(TimeSpan one{on}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/TimeSpanZero/Execute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Execute 6 | { 7 | void Method(TimeSpan one{caret}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/TimeSpanZeroOrNegative/Availability.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Availability 6 | { 7 | void Available(TimeSpan one{on}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/TimeSpanZeroOrNegative/Execute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Execute 6 | { 7 | void Method(TimeSpan one{caret}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/TimeSpanZeroOrPositive/Availability.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Availability 6 | { 7 | void Available(TimeSpan one{on}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/CodeContracts/Types/TimeSpanZeroOrPositive/Execute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal class Execute 6 | { 7 | void Method(TimeSpan one{caret}) { } 8 | } 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/DeclareEqualityOperators/Execute_Record.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal record ClassRecord{caret}1; 6 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/DeclareEqualityOperators/Execute_Record.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Numerics; 3 | 4 | namespace Test 5 | { 6 | internal record ClassRecord{caret}1 : IEqualityOperators; 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/DeclareEqualityOperators/Execute_Record2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal record ClassRecord1; 6 | 7 | internal record ClassRecord{caret}2 : ClassRecord1; 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/DeclareEqualityOperators/Execute_Record2.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Numerics; 3 | 4 | namespace Test 5 | { 6 | internal record ClassRecord1; 7 | 8 | internal record ClassRecord{caret}2 : ClassRecord1, IEqualityOperators; 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/DeclareEqualityOperators/Execute_Record3.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal record ClassRecord{caret}3(int X, int Y); 6 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/DeclareEqualityOperators/Execute_Record3.cs.gold: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Numerics; 3 | 4 | namespace Test 5 | { 6 | internal record ClassRecord{caret}3(int X, int Y) : IEqualityOperators; 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/DeclareEqualityOperators/Execute_Record4.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal record ClassRecord3(int X, int Y); 6 | 7 | internal record ClassRecord{caret}4(int X, int Y, int Z) : ClassRecord3(X, Y); 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/DeclareEqualityOperators/Execute_RecordStruct.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace Test 4 | { 5 | internal record struct StructRecord{caret}1 6 | { 7 | public required int X { get; init; } 8 | public required int Y { get; init; } 9 | } 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ReplaceIsNullOrEmpty/ReplaceWithNegatedListPattern.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Replace(object? obj, int? number) 6 | { 7 | var result = string.IsNull{caret}OrEmpty($"{object}{number:G}"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ReplaceIsNullOrEmpty/ReplaceWithNegatedListPattern.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Replace(object? obj, int? number) 6 | { 7 | var result = {caret}$"{object}{number:G}" is not [_, ..]; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ReplaceIsNullOrEmpty/ReplaceWithNegatedObject.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Replace(object? obj, string suffix) 6 | { 7 | var result = string.IsNull{caret}OrEmpty(obj + suffix); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ReplaceIsNullOrEmpty/ReplaceWithNegatedObject.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Replace(object? obj, string suffix) 6 | { 7 | var result = {caret}obj + suffix is not { Length: > 0 }; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ReplaceIsNullOrEmpty/ReplaceWithNegatedObjectOrEmpty.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Replace(object? obj) 6 | { 7 | var result = !string.IsNull{caret}OrEmpty(obj?.ToString()); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ReplaceIsNullOrEmpty/ReplaceWithNegatedObjectOrEmpty.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Replace(object? obj) 6 | { 7 | var result = !{caret}(obj?.ToString() is not { } or ""); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ReplaceIsNullOrEmpty/ReplaceWithNegatedObjectOrEmptyList.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Replace(string? text) 6 | { 7 | var result = !string.IsNull{caret}OrEmpty(text); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ReplaceIsNullOrEmpty/ReplaceWithNegatedObjectOrEmptyList.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Replace(string? text) 6 | { 7 | var result = !{caret}(text is not { } or []); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ReplaceIsNullOrEmpty/ReplaceWithNullOrEmpty.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Replace(object? obj) 6 | { 7 | var result = string.IsNull{caret}OrEmpty(obj?.ToString()); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ReplaceIsNullOrEmpty/ReplaceWithNullOrEmpty.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Replace(object? obj) 6 | { 7 | var result = {caret}obj?.ToString() is null or ""; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ReplaceIsNullOrEmpty/ReplaceWithNullOrEmptyList.cs: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Replace(string? text) 6 | { 7 | var result = string.IsNull{caret}OrEmpty(text); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ReplaceIsNullOrEmpty/ReplaceWithNullOrEmptyList.cs.gold: -------------------------------------------------------------------------------- 1 | namespace Test 2 | { 3 | public class Strings 4 | { 5 | public void Replace(string? text) 6 | { 7 | var result = text is null o{caret}r []; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/SetLanguageInjection/ExecuteFieldAdd.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace Test 4 | { 5 | public class Execute 6 | { 7 | void Method() { } 8 | 9 | string field = "{ \"one\": n{caret:JSON}ull }"; 10 | 11 | void Method2() { } 12 | } 13 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ToggleReturnTypeOfAsyncMethods/TaskToValueTask.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | namespace Test 4 | { 5 | public class AsyncMethod 6 | { 7 | public async Ta{caret}sk Method() 8 | { 9 | await Task.Yield(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ToggleReturnTypeOfAsyncMethods/TaskToValueTask.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | namespace Test 4 | { 5 | public class AsyncMethod 6 | { 7 | public async ValueTa{caret}sk Method() 8 | { 9 | await Task.Yield(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ToggleReturnTypeOfAsyncMethods/ValueTaskToTask.cs: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | namespace Test 4 | { 5 | public class AsyncMethod 6 | { 7 | public async Value{caret}Task Method() 8 | { 9 | await Task.Yield(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension.Tests/test/data/ContextActions/ToggleReturnTypeOfAsyncMethods/ValueTaskToTask.cs.gold: -------------------------------------------------------------------------------- 1 | using System.Threading.Tasks; 2 | 3 | namespace Test 4 | { 5 | public class AsyncMethod 6 | { 7 | public async {caret}Task Method() 8 | { 9 | await Task.Yield(); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension/Analyzers/Annotation/ValueRangeBoundary.cs: -------------------------------------------------------------------------------- 1 | namespace ReCommendedExtension.Analyzers.Annotation; 2 | 3 | public enum ValueRangeBoundary 4 | { 5 | Lower, 6 | Higher, 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension/Analyzers/ControlFlow/RedundantAssertionSuggestion.cs: -------------------------------------------------------------------------------- 1 | namespace ReCommendedExtension.Analyzers.ControlFlow; 2 | 3 | public abstract class RedundantAssertionSuggestion(string message) : Highlighting(message) 4 | { 5 | internal abstract Assertion Assertion { get; } 6 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension/Analyzers/Linq/ListPatternSuggestionKind.cs: -------------------------------------------------------------------------------- 1 | namespace ReCommendedExtension.Analyzers.Linq; 2 | 3 | public enum ListPatternSuggestionKind 4 | { 5 | FirstOrDefault, 6 | LastOrDefault, 7 | Single, 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension/Analyzers/MultipleHighlightings.cs: -------------------------------------------------------------------------------- 1 | using JetBrains.DocumentModel; 2 | 3 | namespace ReCommendedExtension.Analyzers; 4 | 5 | public abstract class MultipleHighlightings(string message) : Highlighting(message) 6 | { 7 | public sealed override DocumentRange CalculateRange() => throw new NotSupportedException(); 8 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension/Analyzers/Strings/ListPatternSuggestionKind.cs: -------------------------------------------------------------------------------- 1 | namespace ReCommendedExtension.Analyzers.Strings; 2 | 3 | public enum ListPatternSuggestionKind 4 | { 5 | FirstCharacter, 6 | NotFirstCharacter, 7 | LastCharacter, 8 | NotLastCharacter, 9 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension/ContextActions/CodeContracts/Internal/ContractKind.cs: -------------------------------------------------------------------------------- 1 | namespace ReCommendedExtension.ContextActions.CodeContracts.Internal; 2 | 3 | internal enum ContractKind 4 | { 5 | Requires, 6 | Ensures, 7 | RequiresAndEnsures, 8 | Invariant, 9 | EnsuresOnThrow, 10 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension/Extensions/CharExtensions.cs: -------------------------------------------------------------------------------- 1 | namespace ReCommendedExtension.Extensions; 2 | 3 | internal static class CharExtensions 4 | { 5 | [Pure] 6 | public static bool IsPrintable(this char c) => char.IsLetterOrDigit(c) || char.IsWhiteSpace(c) || char.IsSymbol(c) || char.IsPunctuation(c); 7 | } -------------------------------------------------------------------------------- /Sources/ReCommendedExtension/Properties/ReCommendedExtension.public.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prodot/ReCommended-Extension/b30318662f5645d4092b87a8291977c098fb4274/Sources/ReCommendedExtension/Properties/ReCommendedExtension.public.snk --------------------------------------------------------------------------------