From 42787d50d4ca8523ed865694b6f5f94c9a7144bf Mon Sep 17 00:00:00 2001 From: Mattias Karlsson Date: Wed, 15 Nov 2023 23:59:57 +0100 Subject: [PATCH 1/3] (GH-4255) Introduce Verify for CodeGen Expectations * fixes #4255 --- .gitignore | 5 ++- src/Cake.Core.Tests/Cake.Core.Tests.csproj | 3 +- .../Exceptions/CustomeExitCodeTests.cs | 26 ----------- ...name=Generic_ExtensionMethod.verified.txt} | 0 ...MethodWithGenericReturnValue.verified.txt} | 0 ...ValueAndTypeParamConstraints.verified.txt} | 0 ...ExtensionMethodWithParameter.verified.txt} | 0 ...MethodWithDynamicReturnValue.verified.txt} | 0 ...enericCollectionOfNestedType.verified.txt} | 0 ...ericExpressionArrayParameter.verified.txt} | 0 ...thGenericExpressionParameter.verified.txt} | 0 ...pressionParamsArrayParameter.verified.txt} | 0 ...onMethodWithGenericParameter.verified.txt} | 0 ...ensionMethodWithNoParameters.verified.txt} | 0 ...WithOptionalBooleanParameter.verified.txt} | 0 ...hodWithOptionalCharParameter.verified.txt} | 0 ...WithOptionalDecimalParameter.verified.txt} | 0 ...hodWithOptionalEnumParameter.verified.txt} | 0 ...onalNullableBooleanParameter.verified.txt} | 0 ...ptionalNullableCharParameter.verified.txt} | 0 ...onalNullableDecimalParameter.verified.txt} | 0 ...ionalNullableDoubleParameter.verified.txt} | 0 ...ptionalNullableEnumParameter.verified.txt} | 0 ...ptionalNullableLongParameter.verified.txt} | 0 ...thOptionalNullableTParameter.verified.txt} | 0 ...dWithOptionalObjectParameter.verified.txt} | 0 ...dWithOptionalStringParameter.verified.txt} | 0 ...ionMethodWithOutputParameter.verified.txt} | 0 ...ExtensionMethodWithParameter.verified.txt} | 0 ...sionMethodWithParameterArray.verified.txt} | 0 ...ethodWithParameterAttributes.verified.txt} | 0 ...WithReservedKeywordParameter.verified.txt} | 0 ...tensionMethodWithReturnValue.verified.txt} | 0 ...te_ExplicitError_WithMessage.verified.txt} | 0 ..._ExplicitWarning_WithMessage.verified.txt} | 0 ...te_ImplicitWarning_NoMessage.verified.txt} | 0 ..._ImplicitWarning_WithMessage.verified.txt} | 0 ...te_ExplicitError_WithMessage.verified.txt} | 0 ..._ExplicitWarning_WithMessage.verified.txt} | 0 ...te_ImplicitWarning_NoMessage.verified.txt} | 0 ..._ImplicitWarning_WithMessage.verified.txt} | 0 ...ies_name=Cached_Dynamic_Type.verified.txt} | 0 ...s_name=Cached_Reference_Type.verified.txt} | 0 ...rties_name=Cached_Value_Type.verified.txt} | 0 ...te_ExplicitError_WithMessage.verified.txt} | 0 ..._ExplicitWarning_WithMessage.verified.txt} | 0 ...te_ImplicitWarning_NoMessage.verified.txt} | 0 ..._ImplicitWarning_WithMessage.verified.txt} | 0 ..._name=NonCached_Dynamic_Type.verified.txt} | 0 ...es_name=NonCached_Value_Type.verified.txt} | 0 .../Fixtures/MethodAliasGeneratorFixture.cs | 19 -------- .../Fixtures/PropertyAliasGeneratorFixture.cs | 17 ------- ...nGeneric_ExtensionMethodWithArrayParameter | 5 --- .../CodeGen/MethodAliasGeneratorTests.cs | 35 +++++++-------- .../CodeGen/PropertyAliasGeneratorTests.cs | 45 +++++++++---------- src/Cake.Core.Tests/VerifyConfig.cs | 15 +++++++ 56 files changed, 59 insertions(+), 111 deletions(-) delete mode 100644 src/Cake.Core.Tests/Exceptions/CustomeExitCodeTests.cs rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/Generic_ExtensionMethod => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethod.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/Generic_ExtensionMethodWithGenericReturnValue => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValue.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/Generic_ExtensionMethodWithGenericReturnValueAndTypeParamConstraints => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValueAndTypeParamConstraints.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/Generic_ExtensionMethodWithParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithDynamicReturnValue => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithDynamicReturnValue.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericExpressionParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithNoParameters => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithNoParameters.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalBooleanParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalBooleanParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalCharParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalCharParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalDecimalParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalDecimalParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalEnumParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalEnumParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableCharParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableCharParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableLongParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableLongParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableTParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableTParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalObjectParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalObjectParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalStringParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalStringParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOutputParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOutputParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithParameterArray => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterArray.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithParameterAttributes => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterAttributes.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithReservedKeywordParameter => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReservedKeywordParameter.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithReturnValue => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReturnValue.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/Obsolete_ExplicitError_WithMessage => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitError_WithMessage.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/Obsolete_ExplicitWarning_WithMessage => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitWarning_WithMessage.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/Obsolete_ImplicitWarning_NoMessage => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_NoMessage.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Methods/Obsolete_ImplicitWarning_WithMessage => Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_WithMessage.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Properties/Cached_Obsolete_ExplicitError_WithMessage => Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitError_WithMessage.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Properties/Cached_Obsolete_ExplicitWarning_WithMessage => Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitWarning_WithMessage.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Properties/Cached_Obsolete_ImplicitWarning_NoMessage => Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_NoMessage.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Properties/Cached_Obsolete_ImplicitWarning_WithMessage => Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_WithMessage.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Properties/Cached_Dynamic_Type => Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Dynamic_Type.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Properties/Cached_Reference_Type => Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Reference_Type.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Properties/Cached_Value_Type => Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Value_Type.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Properties/NonCached_Obsolete_ExplicitError_WithMessage => Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitError_WithMessage.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Properties/NonCached_Obsolete_ExplicitWarning_WithMessage => Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitWarning_WithMessage.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Properties/NonCached_Obsolete_ImplicitWarning_NoMessage => Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_NoMessage.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Properties/NonCached_Obsolete_ImplicitWarning_WithMessage => Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_WithMessage.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Properties/NonCached_Dynamic_Type => Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Dynamic_Type.verified.txt} (100%) rename src/Cake.Core.Tests/{Unit/Scripting/CodeGen/Expected/Properties/NonCached_Value_Type => Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Value_Type.verified.txt} (100%) delete mode 100644 src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithArrayParameter create mode 100644 src/Cake.Core.Tests/VerifyConfig.cs diff --git a/.gitignore b/.gitignore index 9bc26f7992..98ea8ea147 100644 --- a/.gitignore +++ b/.gitignore @@ -94,4 +94,7 @@ Thumbs.db .DS_Store # Generated Assembly info -AssemblyInfo.Generated.cs \ No newline at end of file +AssemblyInfo.Generated.cs + +# Verify +*.received \ No newline at end of file diff --git a/src/Cake.Core.Tests/Cake.Core.Tests.csproj b/src/Cake.Core.Tests/Cake.Core.Tests.csproj index 7ed265ca0b..1ce40c3a19 100644 --- a/src/Cake.Core.Tests/Cake.Core.Tests.csproj +++ b/src/Cake.Core.Tests/Cake.Core.Tests.csproj @@ -15,6 +15,8 @@ + + all @@ -24,7 +26,6 @@ - \ No newline at end of file diff --git a/src/Cake.Core.Tests/Exceptions/CustomeExitCodeTests.cs b/src/Cake.Core.Tests/Exceptions/CustomeExitCodeTests.cs deleted file mode 100644 index 38b37db0e7..0000000000 --- a/src/Cake.Core.Tests/Exceptions/CustomeExitCodeTests.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Xunit; - -namespace Cake.Core.Tests.Exceptions -{ - public class CustomeExitCodeTests - { - [Fact] - public void Should_Return_Default_ExitCode() - { - var exception = new CakeException(); - Assert.Equal(1, exception.ExitCode); - } - - [Fact] - public void Should_Return_Custom_ExitCode() - { - var exception = new CakeException(5); - Assert.Equal(5, exception.ExitCode); - } - } -} diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Generic_ExtensionMethod b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethod.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Generic_ExtensionMethod rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethod.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Generic_ExtensionMethodWithGenericReturnValue b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValue.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Generic_ExtensionMethodWithGenericReturnValue rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValue.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Generic_ExtensionMethodWithGenericReturnValueAndTypeParamConstraints b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValueAndTypeParamConstraints.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Generic_ExtensionMethodWithGenericReturnValueAndTypeParamConstraints rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValueAndTypeParamConstraints.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Generic_ExtensionMethodWithParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Generic_ExtensionMethodWithParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithDynamicReturnValue b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithDynamicReturnValue.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithDynamicReturnValue rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithDynamicReturnValue.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericExpressionParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericExpressionParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithGenericParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithNoParameters b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithNoParameters.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithNoParameters rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithNoParameters.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalBooleanParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalBooleanParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalBooleanParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalBooleanParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalCharParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalCharParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalCharParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalCharParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalDecimalParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalDecimalParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalDecimalParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalDecimalParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalEnumParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalEnumParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalEnumParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalEnumParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableCharParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableCharParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableCharParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableCharParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableLongParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableLongParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableLongParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableLongParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableTParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableTParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalNullableTParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableTParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalObjectParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalObjectParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalObjectParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalObjectParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalStringParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalStringParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOptionalStringParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalStringParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOutputParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOutputParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithOutputParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOutputParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithParameterArray b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterArray.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithParameterArray rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterArray.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithParameterAttributes b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterAttributes.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithParameterAttributes rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterAttributes.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithReservedKeywordParameter b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReservedKeywordParameter.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithReservedKeywordParameter rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReservedKeywordParameter.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithReturnValue b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReturnValue.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithReturnValue rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReturnValue.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Obsolete_ExplicitError_WithMessage b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitError_WithMessage.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Obsolete_ExplicitError_WithMessage rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitError_WithMessage.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Obsolete_ExplicitWarning_WithMessage b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitWarning_WithMessage.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Obsolete_ExplicitWarning_WithMessage rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitWarning_WithMessage.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Obsolete_ImplicitWarning_NoMessage b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_NoMessage.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Obsolete_ImplicitWarning_NoMessage rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_NoMessage.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Obsolete_ImplicitWarning_WithMessage b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_WithMessage.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/Obsolete_ImplicitWarning_WithMessage rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_WithMessage.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/Cached_Obsolete_ExplicitError_WithMessage b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitError_WithMessage.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/Cached_Obsolete_ExplicitError_WithMessage rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitError_WithMessage.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/Cached_Obsolete_ExplicitWarning_WithMessage b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitWarning_WithMessage.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/Cached_Obsolete_ExplicitWarning_WithMessage rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitWarning_WithMessage.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/Cached_Obsolete_ImplicitWarning_NoMessage b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_NoMessage.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/Cached_Obsolete_ImplicitWarning_NoMessage rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_NoMessage.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/Cached_Obsolete_ImplicitWarning_WithMessage b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_WithMessage.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/Cached_Obsolete_ImplicitWarning_WithMessage rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_WithMessage.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/Cached_Dynamic_Type b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Dynamic_Type.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/Cached_Dynamic_Type rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Dynamic_Type.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/Cached_Reference_Type b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Reference_Type.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/Cached_Reference_Type rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Reference_Type.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/Cached_Value_Type b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Value_Type.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/Cached_Value_Type rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Value_Type.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/NonCached_Obsolete_ExplicitError_WithMessage b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitError_WithMessage.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/NonCached_Obsolete_ExplicitError_WithMessage rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitError_WithMessage.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/NonCached_Obsolete_ExplicitWarning_WithMessage b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitWarning_WithMessage.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/NonCached_Obsolete_ExplicitWarning_WithMessage rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitWarning_WithMessage.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/NonCached_Obsolete_ImplicitWarning_NoMessage b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_NoMessage.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/NonCached_Obsolete_ImplicitWarning_NoMessage rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_NoMessage.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/NonCached_Obsolete_ImplicitWarning_WithMessage b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_WithMessage.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/NonCached_Obsolete_ImplicitWarning_WithMessage rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_WithMessage.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/NonCached_Dynamic_Type b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Dynamic_Type.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/NonCached_Dynamic_Type rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Dynamic_Type.verified.txt diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/NonCached_Value_Type b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Value_Type.verified.txt similarity index 100% rename from src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Properties/NonCached_Value_Type rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Value_Type.verified.txt diff --git a/src/Cake.Core.Tests/Fixtures/MethodAliasGeneratorFixture.cs b/src/Cake.Core.Tests/Fixtures/MethodAliasGeneratorFixture.cs index 3917db8fe8..eae535d452 100644 --- a/src/Cake.Core.Tests/Fixtures/MethodAliasGeneratorFixture.cs +++ b/src/Cake.Core.Tests/Fixtures/MethodAliasGeneratorFixture.cs @@ -13,32 +13,13 @@ namespace Cake.Core.Tests.Fixtures { public sealed class MethodAliasGeneratorFixture { - private readonly Assembly _assembly; private readonly MethodInfo[] _methods; public MethodAliasGeneratorFixture() { - _assembly = typeof(MethodAliasGeneratorFixture).GetTypeInfo().Assembly; _methods = typeof(MethodAliasGeneratorData).GetMethods(); } - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")] - public string GetExpectedCode(string name) - { - var resource = string.Concat("Cake.Core.Tests.Unit.Scripting.CodeGen.Expected.Methods.", name); - using (var stream = _assembly.GetManifestResourceStream(resource)) - { - if (stream == null) - { - throw new InvalidOperationException("Could not load manifest resource stream."); - } - using (var reader = new StreamReader(stream)) - { - return reader.ReadToEnd().NormalizeGeneratedCode(); - } - } - } - public string Generate(string name) { var method = _methods.SingleOrDefault(x => x.Name == name); diff --git a/src/Cake.Core.Tests/Fixtures/PropertyAliasGeneratorFixture.cs b/src/Cake.Core.Tests/Fixtures/PropertyAliasGeneratorFixture.cs index a65046b55c..05edf31455 100644 --- a/src/Cake.Core.Tests/Fixtures/PropertyAliasGeneratorFixture.cs +++ b/src/Cake.Core.Tests/Fixtures/PropertyAliasGeneratorFixture.cs @@ -22,23 +22,6 @@ public PropertyAliasGeneratorFixture() _methods = typeof(PropertyAliasGeneratorData).GetMethods(); } - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")] - public string GetExpectedData(string name) - { - var resource = string.Concat("Cake.Core.Tests.Unit.Scripting.CodeGen.Expected.Properties.", name); - using (var stream = _assembly.GetManifestResourceStream(resource)) - { - if (stream == null) - { - throw new InvalidOperationException("Could not load manifest resource stream."); - } - using (var reader = new StreamReader(stream)) - { - return reader.ReadToEnd().NormalizeGeneratedCode(); - } - } - } - public string Generate(string name) { var method = _methods.SingleOrDefault(x => x.Name == name); diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithArrayParameter b/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithArrayParameter deleted file mode 100644 index cbf59c7a7f..0000000000 --- a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/Expected/Methods/NonGeneric_ExtensionMethodWithArrayParameter +++ /dev/null @@ -1,5 +0,0 @@ -[System.Diagnostics.DebuggerStepThrough] -public void NonGeneric_ExtensionMethodWithArrayParameter(System.String[] values) -{ - Cake.Core.Tests.Data.MethodAliasGeneratorData.NonGeneric_ExtensionMethodWithArrayParameter(Context, values); -} \ No newline at end of file diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/MethodAliasGeneratorTests.cs b/src/Cake.Core.Tests/Unit/Scripting/CodeGen/MethodAliasGeneratorTests.cs index 464f84d199..e585b9e154 100644 --- a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/MethodAliasGeneratorTests.cs +++ b/src/Cake.Core.Tests/Unit/Scripting/CodeGen/MethodAliasGeneratorTests.cs @@ -2,14 +2,19 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System.Threading.Tasks; using Cake.Core.Scripting.CodeGen; using Cake.Core.Tests.Fixtures; +using VerifyXunit; using Xunit; +using static VerifyXunit.Verifier; namespace Cake.Core.Tests.Unit.Scripting.CodeGen { + [UsesVerify] public sealed class MethodAliasGeneratorTests { + [UsesVerify] public sealed class TheGeneratorMethod : IClassFixture { private readonly MethodAliasGeneratorFixture _fixture; @@ -56,16 +61,14 @@ public void Should_Throw_If_Method_Is_Null() [InlineData("NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType")] [InlineData("NonGeneric_ExtensionMethodWithParameterAttributes")] [InlineData("NonGeneric_ExtensionMethodWithDynamicReturnValue")] - public void Should_Return_Correct_Generated_Code_For_Non_Generic_Methods(string name) + public Task Should_Return_Correct_Generated_Code_For_Non_Generic_Methods(string name) { - // Given - var expected = _fixture.GetExpectedCode(name); - - // When + // Given / When var result = _fixture.Generate(name); // Then - Assert.Equal(expected, result); + return Verify(result) + .UseParameters(name); } [Theory] @@ -73,16 +76,14 @@ public void Should_Return_Correct_Generated_Code_For_Non_Generic_Methods(string [InlineData("Generic_ExtensionMethodWithParameter")] [InlineData("Generic_ExtensionMethodWithGenericReturnValue")] [InlineData("Generic_ExtensionMethodWithGenericReturnValueAndTypeParamConstraints")] - public void Should_Return_Correct_Generated_Code_For_Generic_Methods(string name) + public Task Should_Return_Correct_Generated_Code_For_Generic_Methods(string name) { - // Given - var expected = _fixture.GetExpectedCode(name); - - // When + // Given / When var result = _fixture.Generate(name); // Then - Assert.Equal(expected, result); + return Verify(result) + .UseParameters(name); } [Theory] @@ -90,16 +91,14 @@ public void Should_Return_Correct_Generated_Code_For_Generic_Methods(string name [InlineData("Obsolete_ImplicitWarning_WithMessage")] [InlineData("Obsolete_ExplicitWarning_WithMessage")] [InlineData("Obsolete_ExplicitError_WithMessage")] - public void Should_Return_Correct_Generated_Code_For_Obsolete_Methods(string name) + public Task Should_Return_Correct_Generated_Code_For_Obsolete_Methods(string name) { - // Given - var expected = _fixture.GetExpectedCode(name); - - // When + // Given / When var result = _fixture.Generate(name); // Then - Assert.Equal(expected, result); + return Verify(result) + .UseParameters(name); } } } diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/PropertyAliasGeneratorTests.cs b/src/Cake.Core.Tests/Unit/Scripting/CodeGen/PropertyAliasGeneratorTests.cs index af8ca01a83..e9c9112826 100644 --- a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/PropertyAliasGeneratorTests.cs +++ b/src/Cake.Core.Tests/Unit/Scripting/CodeGen/PropertyAliasGeneratorTests.cs @@ -3,14 +3,19 @@ // See the LICENSE file in the project root for more information. using System.Reflection; +using System.Threading.Tasks; using Cake.Core.Scripting.CodeGen; using Cake.Core.Tests.Fixtures; +using VerifyXunit; using Xunit; +using static VerifyXunit.Verifier; namespace Cake.Core.Tests.Unit.Scripting.CodeGen { + [UsesVerify] public sealed class PropertyAliasGeneratorTests { + [UsesVerify] public sealed class TheGenerateMethod : IClassFixture { private readonly PropertyAliasGeneratorFixture _fixture; @@ -113,32 +118,28 @@ public void Should_Throw_If_Property_Alias_Returns_Void() [Theory] [InlineData("NonCached_Value_Type")] [InlineData("NonCached_Dynamic_Type")] - public void Should_Return_Correct_Generated_Code_For_Non_Cached_Properties(string name) + public Task Should_Return_Correct_Generated_Code_For_Non_Cached_Properties(string name) { - // Given - var expected = _fixture.GetExpectedData(name); - - // When + // Given / When var result = _fixture.Generate(name); // Then - Assert.Equal(expected, result); + return Verify(result) + .UseParameters(name); } [Theory] [InlineData("Cached_Reference_Type")] [InlineData("Cached_Value_Type")] [InlineData("Cached_Dynamic_Type")] - public void Should_Return_Correct_Generated_Code_For_Cached_Properties(string name) + public Task Should_Return_Correct_Generated_Code_For_Cached_Properties(string name) { - // Given - var expected = _fixture.GetExpectedData(name); - - // When + // Given / When var result = _fixture.Generate(name); // Then - Assert.Equal(expected, result); + return Verify(result) + .UseParameters(name); } [Theory] @@ -146,16 +147,14 @@ public void Should_Return_Correct_Generated_Code_For_Cached_Properties(string na [InlineData("NonCached_Obsolete_ImplicitWarning_WithMessage")] [InlineData("NonCached_Obsolete_ExplicitWarning_WithMessage")] [InlineData("NonCached_Obsolete_ExplicitError_WithMessage")] - public void Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties(string name) + public Task Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties(string name) { - // Given - var expected = _fixture.GetExpectedData(name); - - // When + // Given / When var result = _fixture.Generate(name); // Then - Assert.Equal(expected, result); + return Verify(result) + .UseParameters(name); } [Theory] @@ -163,16 +162,14 @@ public void Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Propert [InlineData("Cached_Obsolete_ImplicitWarning_WithMessage")] [InlineData("Cached_Obsolete_ExplicitWarning_WithMessage")] [InlineData("Cached_Obsolete_ExplicitError_WithMessage")] - public void Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties(string name) + public Task Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties(string name) { - // Given - var expected = _fixture.GetExpectedData(name); - - // When + // Given / When var result = _fixture.Generate(name); // Then - Assert.Equal(expected, result); + return Verify(result) + .UseParameters(name); } } } diff --git a/src/Cake.Core.Tests/VerifyConfig.cs b/src/Cake.Core.Tests/VerifyConfig.cs new file mode 100644 index 0000000000..416e82c760 --- /dev/null +++ b/src/Cake.Core.Tests/VerifyConfig.cs @@ -0,0 +1,15 @@ +using System.Runtime.CompilerServices; +using VerifyTests; +using VerifyXunit; + +namespace Cake.Core.Tests +{ + public static class VerifyConfig + { + [ModuleInitializer] + public static void Init() + { + Verifier.DerivePathInfo(Expectations.Initialize); + } + } +} From 041d6bcceb407934eab938b4a805317d29a5f474 Mon Sep 17 00:00:00 2001 From: Mattias Karlsson Date: Thu, 16 Nov 2023 11:35:04 +0100 Subject: [PATCH 2/3] Verify: Codegen use Cake extension, git atrributes, editorconfig --- .editorconfig | 12 ++++++++++- .gitattributes | 17 ++++++++++++---- ...ame=Generic_ExtensionMethod.verified.cake} | 0 ...ethodWithGenericReturnValue.verified.cake} | 0 ...alueAndTypeParamConstraints.verified.cake} | 0 ...xtensionMethodWithParameter.verified.cake} | 0 ...ethodWithDynamicReturnValue.verified.cake} | 0 ...nericCollectionOfNestedType.verified.cake} | 0 ...ricExpressionArrayParameter.verified.cake} | 0 ...hGenericExpressionParameter.verified.cake} | 0 ...ressionParamsArrayParameter.verified.cake} | 0 ...nMethodWithGenericParameter.verified.cake} | 0 ...nsionMethodWithNoParameters.verified.cake} | 0 ...ithOptionalBooleanParameter.verified.cake} | 0 ...odWithOptionalCharParameter.verified.cake} | 0 ...ithOptionalDecimalParameter.verified.cake} | 0 ...odWithOptionalEnumParameter.verified.cake} | 0 ...nalNullableBooleanParameter.verified.cake} | 0 ...tionalNullableCharParameter.verified.cake} | 0 ...nalNullableDecimalParameter.verified.cake} | 0 ...onalNullableDoubleParameter.verified.cake} | 0 ...tionalNullableEnumParameter.verified.cake} | 0 ...tionalNullableLongParameter.verified.cake} | 0 ...hOptionalNullableTParameter.verified.cake} | 0 ...WithOptionalObjectParameter.verified.cake} | 0 ...WithOptionalStringParameter.verified.cake} | 0 ...onMethodWithOutputParameter.verified.cake} | 0 ...xtensionMethodWithParameter.verified.cake} | 0 ...ionMethodWithParameterArray.verified.cake} | 0 ...thodWithParameterAttributes.verified.cake} | 0 ...ithReservedKeywordParameter.verified.cake} | 0 ...ensionMethodWithReturnValue.verified.cake} | 0 ...e_ExplicitError_WithMessage.verified.cake} | 0 ...ExplicitWarning_WithMessage.verified.cake} | 0 ...e_ImplicitWarning_NoMessage.verified.cake} | 0 ...ImplicitWarning_WithMessage.verified.cake} | 0 ...e_ExplicitError_WithMessage.verified.cake} | 0 ...ExplicitWarning_WithMessage.verified.cake} | 0 ...e_ImplicitWarning_NoMessage.verified.cake} | 0 ...ImplicitWarning_WithMessage.verified.cake} | 0 ...es_name=Cached_Dynamic_Type.verified.cake} | 0 ..._name=Cached_Reference_Type.verified.cake} | 0 ...ties_name=Cached_Value_Type.verified.cake} | 0 ...e_ExplicitError_WithMessage.verified.cake} | 0 ...ExplicitWarning_WithMessage.verified.cake} | 0 ...e_ImplicitWarning_NoMessage.verified.cake} | 0 ...ImplicitWarning_WithMessage.verified.cake} | 0 ...name=NonCached_Dynamic_Type.verified.cake} | 0 ...s_name=NonCached_Value_Type.verified.cake} | 0 .../CodeGen/MethodAliasGeneratorTests.cs | 8 ++++---- .../CodeGen/PropertyAliasGeneratorTests.cs | 10 +++++----- src/Cake.Core.Tests/VerifyConfig.cs | 20 ++++++++++++++++--- 52 files changed, 50 insertions(+), 17 deletions(-) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethod.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethod.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValue.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValue.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValueAndTypeParamConstraints.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValueAndTypeParamConstraints.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithDynamicReturnValue.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithDynamicReturnValue.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithNoParameters.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithNoParameters.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalBooleanParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalBooleanParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalCharParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalCharParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalDecimalParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalDecimalParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalEnumParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalEnumParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableCharParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableCharParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableLongParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableLongParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableTParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableTParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalObjectParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalObjectParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalStringParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalStringParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOutputParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOutputParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterArray.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterArray.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterAttributes.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterAttributes.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReservedKeywordParameter.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReservedKeywordParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReturnValue.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReturnValue.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitError_WithMessage.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitError_WithMessage.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitWarning_WithMessage.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitWarning_WithMessage.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_NoMessage.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_NoMessage.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_WithMessage.verified.txt => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_WithMessage.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitError_WithMessage.verified.txt => PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitError_WithMessage.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitWarning_WithMessage.verified.txt => PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitWarning_WithMessage.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_NoMessage.verified.txt => PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_NoMessage.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_WithMessage.verified.txt => PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_WithMessage.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Dynamic_Type.verified.txt => PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Dynamic_Type.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Reference_Type.verified.txt => PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Reference_Type.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Value_Type.verified.txt => PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Value_Type.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitError_WithMessage.verified.txt => PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitError_WithMessage.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitWarning_WithMessage.verified.txt => PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitWarning_WithMessage.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_NoMessage.verified.txt => PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_NoMessage.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_WithMessage.verified.txt => PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_WithMessage.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Dynamic_Type.verified.txt => PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Dynamic_Type.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Value_Type.verified.txt => PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Value_Type.verified.cake} (100%) diff --git a/.editorconfig b/.editorconfig index a709d6bbf4..c20801b14d 100644 --- a/.editorconfig +++ b/.editorconfig @@ -20,4 +20,14 @@ indent_size = 4 [*.js] indent_style = tab -indent_size = 2 \ No newline at end of file +indent_size = 2 + +# Verify settings +[*.{received,verified}.{txt,xml,json,cake}] +charset = "utf-8-bom" +end_of_line = lf +indent_size = unset +indent_style = unset +insert_final_newline = false +tab_width = unset +trim_trailing_whitespace = false \ No newline at end of file diff --git a/.gitattributes b/.gitattributes index 4cfbb10890..75b9c6b431 100644 --- a/.gitattributes +++ b/.gitattributes @@ -18,7 +18,7 @@ # # Merging from the command prompt will add diff markers to the files if there # are conflicts (Merging from VS is not affected by the settings below, in VS -# the diff markers are never inserted). Diff markers may cause the following +# the diff markers are never inserted). Diff markers may cause the following # file extensions to fail to load in VS. An alternative would be to treat # these files as binary and thus will always conflict and require user # intervention with every merge. To do so, just uncomment the entries below @@ -47,9 +47,9 @@ ############################################################################### # diff behavior for common document formats -# +# # Convert binary document formats to text before diffing them. This feature -# is only available from the command line. Turn it on by uncommenting the +# is only available from the command line. Turn it on by uncommenting the # entries below. ############################################################################### #*.doc diff=astextplain @@ -61,4 +61,13 @@ #*.pdf diff=astextplain #*.PDF diff=astextplain #*.rtf diff=astextplain -#*.RTF diff=astextplain \ No newline at end of file +#*.RTF diff=astextplain + +############################################################################### +# Verify files +############################################################################### + +*.verified.txt text eol=lf working-tree-encoding=UTF-8 +*.verified.xml text eol=lf working-tree-encoding=UTF-8 +*.verified.json text eol=lf working-tree-encoding=UTF-8 +*.verified.cake text eol=lf working-tree-encoding=UTF-8 \ No newline at end of file diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethod.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethod.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethod.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethod.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValue.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValue.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValue.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValue.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValueAndTypeParamConstraints.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValueAndTypeParamConstraints.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValueAndTypeParamConstraints.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithGenericReturnValueAndTypeParamConstraints.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Generic_Methods_name=Generic_ExtensionMethodWithParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithDynamicReturnValue.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithDynamicReturnValue.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithDynamicReturnValue.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithDynamicReturnValue.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithNoParameters.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithNoParameters.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithNoParameters.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithNoParameters.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalBooleanParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalBooleanParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalBooleanParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalBooleanParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalCharParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalCharParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalCharParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalCharParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalDecimalParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalDecimalParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalDecimalParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalDecimalParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalEnumParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalEnumParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalEnumParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalEnumParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableCharParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableCharParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableCharParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableCharParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableLongParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableLongParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableLongParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableLongParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableTParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableTParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableTParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableTParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalObjectParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalObjectParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalObjectParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalObjectParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalStringParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalStringParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalStringParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalStringParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOutputParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOutputParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOutputParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOutputParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterArray.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterArray.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterArray.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterArray.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterAttributes.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterAttributes.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterAttributes.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterAttributes.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReservedKeywordParameter.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReservedKeywordParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReservedKeywordParameter.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReservedKeywordParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReturnValue.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReturnValue.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReturnValue.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReturnValue.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitError_WithMessage.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitError_WithMessage.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitError_WithMessage.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitError_WithMessage.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitWarning_WithMessage.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitWarning_WithMessage.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitWarning_WithMessage.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ExplicitWarning_WithMessage.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_NoMessage.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_NoMessage.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_NoMessage.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_NoMessage.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_WithMessage.verified.txt b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_WithMessage.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_WithMessage.verified.txt rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Obsolete_Methods_name=Obsolete_ImplicitWarning_WithMessage.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitError_WithMessage.verified.txt b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitError_WithMessage.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitError_WithMessage.verified.txt rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitError_WithMessage.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitWarning_WithMessage.verified.txt b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitWarning_WithMessage.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitWarning_WithMessage.verified.txt rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ExplicitWarning_WithMessage.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_NoMessage.verified.txt b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_NoMessage.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_NoMessage.verified.txt rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_NoMessage.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_WithMessage.verified.txt b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_WithMessage.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_WithMessage.verified.txt rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties_name=Cached_Obsolete_ImplicitWarning_WithMessage.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Dynamic_Type.verified.txt b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Dynamic_Type.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Dynamic_Type.verified.txt rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Dynamic_Type.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Reference_Type.verified.txt b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Reference_Type.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Reference_Type.verified.txt rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Reference_Type.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Value_Type.verified.txt b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Value_Type.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Value_Type.verified.txt rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Cached_Properties_name=Cached_Value_Type.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitError_WithMessage.verified.txt b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitError_WithMessage.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitError_WithMessage.verified.txt rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitError_WithMessage.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitWarning_WithMessage.verified.txt b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitWarning_WithMessage.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitWarning_WithMessage.verified.txt rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ExplicitWarning_WithMessage.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_NoMessage.verified.txt b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_NoMessage.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_NoMessage.verified.txt rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_NoMessage.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_WithMessage.verified.txt b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_WithMessage.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_WithMessage.verified.txt rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Properties_name=NonCached_Obsolete_ImplicitWarning_WithMessage.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Dynamic_Type.verified.txt b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Dynamic_Type.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Dynamic_Type.verified.txt rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Dynamic_Type.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Value_Type.verified.txt b/src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Value_Type.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Value_Type.verified.txt rename to src/Cake.Core.Tests/Expectations/PropertyAliasGeneratorTests.TheGenerateMethod.Should_Return_Correct_Generated_Code_For_Non_Cached_Properties_name=NonCached_Value_Type.verified.cake diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/MethodAliasGeneratorTests.cs b/src/Cake.Core.Tests/Unit/Scripting/CodeGen/MethodAliasGeneratorTests.cs index e585b9e154..34c2686a7e 100644 --- a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/MethodAliasGeneratorTests.cs +++ b/src/Cake.Core.Tests/Unit/Scripting/CodeGen/MethodAliasGeneratorTests.cs @@ -7,7 +7,7 @@ using Cake.Core.Tests.Fixtures; using VerifyXunit; using Xunit; -using static VerifyXunit.Verifier; +using static Cake.Core.Tests.VerifyConfig; namespace Cake.Core.Tests.Unit.Scripting.CodeGen { @@ -67,7 +67,7 @@ public Task Should_Return_Correct_Generated_Code_For_Non_Generic_Methods(string var result = _fixture.Generate(name); // Then - return Verify(result) + return VerifyCake(result) .UseParameters(name); } @@ -82,7 +82,7 @@ public Task Should_Return_Correct_Generated_Code_For_Generic_Methods(string name var result = _fixture.Generate(name); // Then - return Verify(result) + return VerifyCake(result) .UseParameters(name); } @@ -97,7 +97,7 @@ public Task Should_Return_Correct_Generated_Code_For_Obsolete_Methods(string nam var result = _fixture.Generate(name); // Then - return Verify(result) + return VerifyCake(result) .UseParameters(name); } } diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/PropertyAliasGeneratorTests.cs b/src/Cake.Core.Tests/Unit/Scripting/CodeGen/PropertyAliasGeneratorTests.cs index e9c9112826..c6595a8e15 100644 --- a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/PropertyAliasGeneratorTests.cs +++ b/src/Cake.Core.Tests/Unit/Scripting/CodeGen/PropertyAliasGeneratorTests.cs @@ -8,7 +8,7 @@ using Cake.Core.Tests.Fixtures; using VerifyXunit; using Xunit; -using static VerifyXunit.Verifier; +using static Cake.Core.Tests.VerifyConfig; namespace Cake.Core.Tests.Unit.Scripting.CodeGen { @@ -124,7 +124,7 @@ public Task Should_Return_Correct_Generated_Code_For_Non_Cached_Properties(strin var result = _fixture.Generate(name); // Then - return Verify(result) + return VerifyCake(result) .UseParameters(name); } @@ -138,7 +138,7 @@ public Task Should_Return_Correct_Generated_Code_For_Cached_Properties(string na var result = _fixture.Generate(name); // Then - return Verify(result) + return VerifyCake(result) .UseParameters(name); } @@ -153,7 +153,7 @@ public Task Should_Return_Correct_Generated_Code_For_Non_Cached_Obsolete_Propert var result = _fixture.Generate(name); // Then - return Verify(result) + return VerifyCake(result) .UseParameters(name); } @@ -168,7 +168,7 @@ public Task Should_Return_Correct_Generated_Code_For_Cached_Obsolete_Properties( var result = _fixture.Generate(name); // Then - return Verify(result) + return VerifyCake(result) .UseParameters(name); } } diff --git a/src/Cake.Core.Tests/VerifyConfig.cs b/src/Cake.Core.Tests/VerifyConfig.cs index 416e82c760..a32ee74f29 100644 --- a/src/Cake.Core.Tests/VerifyConfig.cs +++ b/src/Cake.Core.Tests/VerifyConfig.cs @@ -1,6 +1,7 @@ -using System.Runtime.CompilerServices; +using System.Diagnostics.Contracts; +using System.Runtime.CompilerServices; using VerifyTests; -using VerifyXunit; +using static VerifyXunit.Verifier; namespace Cake.Core.Tests { @@ -9,7 +10,20 @@ public static class VerifyConfig [ModuleInitializer] public static void Init() { - Verifier.DerivePathInfo(Expectations.Initialize); + EmptyFiles.FileExtensions.AddTextExtension(Extensions.Cake); + DerivePathInfo(Expectations.Initialize); } + + public static class Extensions + { + public const string Cake = "cake"; + } + + [Pure] + public static SettingsTask VerifyCake( + string target, + VerifySettings settings = null, + [CallerFilePath] string sourceFile = "") + => Verify(target, Extensions.Cake, settings, sourceFile); } } From 16a25bd1d49ee5cb67cc62c8e2d7bbbb6a7057ed Mon Sep 17 00:00:00 2001 From: Mattias Karlsson Date: Thu, 16 Nov 2023 12:34:13 +0100 Subject: [PATCH 3/3] Shorten some names for libgit (i.e. TeamCity) --- ...ethodWithDynamicReturnValue.verified.cake} | 0 ...nericCollectionOfNestedType.verified.cake} | 0 ...ricExpressionArrayParameter.verified.cake} | 0 ...hGenericExpressionParameter.verified.cake} | 0 ...ressionParamsArrayParameter.verified.cake} | 0 ...nMethodWithGenericParameter.verified.cake} | 0 ...nsionMethodWithNoParameters.verified.cake} | 0 ...ithOptionalBooleanParameter.verified.cake} | 0 ...odWithOptionalCharParameter.verified.cake} | 0 ...ithOptionalDecimalParameter.verified.cake} | 0 ...odWithOptionalEnumParameter.verified.cake} | 0 ...nalNullableBooleanParameter.verified.cake} | 0 ...tionalNullableCharParameter.verified.cake} | 0 ...nalNullableDecimalParameter.verified.cake} | 0 ...onalNullableDoubleParameter.verified.cake} | 0 ...tionalNullableEnumParameter.verified.cake} | 0 ...tionalNullableLongParameter.verified.cake} | 0 ...hOptionalNullableTParameter.verified.cake} | 0 ...WithOptionalObjectParameter.verified.cake} | 0 ...WithOptionalStringParameter.verified.cake} | 0 ...onMethodWithOutputParameter.verified.cake} | 0 ...xtensionMethodWithParameter.verified.cake} | 0 ...ionMethodWithParameterArray.verified.cake} | 0 ...thodWithParameterAttributes.verified.cake} | 0 ...ithReservedKeywordParameter.verified.cake} | 0 ...ensionMethodWithReturnValue.verified.cake} | 0 .../CodeGen/MethodAliasGeneratorTests.cs | 54 +++++++++---------- 27 files changed, 27 insertions(+), 27 deletions(-) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithDynamicReturnValue.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithDynamicReturnValue.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericCollectionOfNestedType.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericExpressionArrayParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericExpressionParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithNoParameters.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithNoParameters.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalBooleanParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalBooleanParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalCharParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalCharParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalDecimalParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalDecimalParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalEnumParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalEnumParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableBooleanParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableCharParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableCharParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableDecimalParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableDoubleParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableEnumParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableLongParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableLongParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableTParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableTParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalObjectParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalObjectParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalStringParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalStringParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOutputParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOutputParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterArray.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithParameterArray.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterAttributes.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithParameterAttributes.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReservedKeywordParameter.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithReservedKeywordParameter.verified.cake} (100%) rename src/Cake.Core.Tests/Expectations/{MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReturnValue.verified.cake => MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithReturnValue.verified.cake} (100%) diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithDynamicReturnValue.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithDynamicReturnValue.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithDynamicReturnValue.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithDynamicReturnValue.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericCollectionOfNestedType.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericCollectionOfNestedType.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericExpressionArrayParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericExpressionArrayParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericExpressionParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericExpressionParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericExpressionParamsArrayParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithGenericParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithGenericParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithNoParameters.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithNoParameters.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithNoParameters.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithNoParameters.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalBooleanParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalBooleanParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalBooleanParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalBooleanParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalCharParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalCharParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalCharParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalCharParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalDecimalParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalDecimalParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalDecimalParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalDecimalParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalEnumParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalEnumParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalEnumParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalEnumParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableBooleanParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableBooleanParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableCharParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableCharParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableCharParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableCharParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableDecimalParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableDecimalParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableDoubleParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableDoubleParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableEnumParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableEnumParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableLongParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableLongParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableLongParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableLongParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableTParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableTParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalNullableTParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalNullableTParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalObjectParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalObjectParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalObjectParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalObjectParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalStringParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalStringParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOptionalStringParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOptionalStringParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOutputParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOutputParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithOutputParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithOutputParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterArray.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithParameterArray.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterArray.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithParameterArray.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterAttributes.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithParameterAttributes.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithParameterAttributes.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithParameterAttributes.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReservedKeywordParameter.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithReservedKeywordParameter.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReservedKeywordParameter.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithReservedKeywordParameter.verified.cake diff --git a/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReturnValue.verified.cake b/src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithReturnValue.verified.cake similarity index 100% rename from src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=NonGeneric_ExtensionMethodWithReturnValue.verified.cake rename to src/Cake.Core.Tests/Expectations/MethodAliasGeneratorTests.TheGeneratorMethod.Should_Return_Correct_Generated_Code_For_Non_Generic_Methods_name=ExtensionMethodWithReturnValue.verified.cake diff --git a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/MethodAliasGeneratorTests.cs b/src/Cake.Core.Tests/Unit/Scripting/CodeGen/MethodAliasGeneratorTests.cs index 34c2686a7e..ebcf9a5614 100644 --- a/src/Cake.Core.Tests/Unit/Scripting/CodeGen/MethodAliasGeneratorTests.cs +++ b/src/Cake.Core.Tests/Unit/Scripting/CodeGen/MethodAliasGeneratorTests.cs @@ -35,36 +35,36 @@ public void Should_Throw_If_Method_Is_Null() } [Theory] - [InlineData("NonGeneric_ExtensionMethodWithNoParameters")] - [InlineData("NonGeneric_ExtensionMethodWithParameter")] - [InlineData("NonGeneric_ExtensionMethodWithGenericParameter")] - [InlineData("NonGeneric_ExtensionMethodWithGenericExpressionParameter")] - [InlineData("NonGeneric_ExtensionMethodWithGenericExpressionArrayParameter")] - [InlineData("NonGeneric_ExtensionMethodWithGenericExpressionParamsArrayParameter")] - [InlineData("NonGeneric_ExtensionMethodWithReturnValue")] - [InlineData("NonGeneric_ExtensionMethodWithParameterArray")] - [InlineData("NonGeneric_ExtensionMethodWithOptionalObjectParameter")] - [InlineData("NonGeneric_ExtensionMethodWithOptionalBooleanParameter")] - [InlineData("NonGeneric_ExtensionMethodWithOptionalStringParameter")] - [InlineData("NonGeneric_ExtensionMethodWithOptionalEnumParameter")] - [InlineData("NonGeneric_ExtensionMethodWithOptionalCharParameter")] - [InlineData("NonGeneric_ExtensionMethodWithOptionalDecimalParameter")] - [InlineData("NonGeneric_ExtensionMethodWithOptionalNullableTParameter")] - [InlineData("NonGeneric_ExtensionMethodWithOptionalNullableBooleanParameter")] - [InlineData("NonGeneric_ExtensionMethodWithOptionalNullableCharParameter")] - [InlineData("NonGeneric_ExtensionMethodWithOptionalNullableEnumParameter")] - [InlineData("NonGeneric_ExtensionMethodWithOptionalNullableDecimalParameter")] - [InlineData("NonGeneric_ExtensionMethodWithOptionalNullableLongParameter")] - [InlineData("NonGeneric_ExtensionMethodWithOptionalNullableDoubleParameter")] - [InlineData("NonGeneric_ExtensionMethodWithReservedKeywordParameter")] - [InlineData("NonGeneric_ExtensionMethodWithOutputParameter")] - [InlineData("NonGeneric_ExtensionMethodWithGenericCollectionOfNestedType")] - [InlineData("NonGeneric_ExtensionMethodWithParameterAttributes")] - [InlineData("NonGeneric_ExtensionMethodWithDynamicReturnValue")] + [InlineData("ExtensionMethodWithNoParameters")] + [InlineData("ExtensionMethodWithParameter")] + [InlineData("ExtensionMethodWithGenericParameter")] + [InlineData("ExtensionMethodWithGenericExpressionParameter")] + [InlineData("ExtensionMethodWithGenericExpressionArrayParameter")] + [InlineData("ExtensionMethodWithGenericExpressionParamsArrayParameter")] + [InlineData("ExtensionMethodWithReturnValue")] + [InlineData("ExtensionMethodWithParameterArray")] + [InlineData("ExtensionMethodWithOptionalObjectParameter")] + [InlineData("ExtensionMethodWithOptionalBooleanParameter")] + [InlineData("ExtensionMethodWithOptionalStringParameter")] + [InlineData("ExtensionMethodWithOptionalEnumParameter")] + [InlineData("ExtensionMethodWithOptionalCharParameter")] + [InlineData("ExtensionMethodWithOptionalDecimalParameter")] + [InlineData("ExtensionMethodWithOptionalNullableTParameter")] + [InlineData("ExtensionMethodWithOptionalNullableBooleanParameter")] + [InlineData("ExtensionMethodWithOptionalNullableCharParameter")] + [InlineData("ExtensionMethodWithOptionalNullableEnumParameter")] + [InlineData("ExtensionMethodWithOptionalNullableDecimalParameter")] + [InlineData("ExtensionMethodWithOptionalNullableLongParameter")] + [InlineData("ExtensionMethodWithOptionalNullableDoubleParameter")] + [InlineData("ExtensionMethodWithReservedKeywordParameter")] + [InlineData("ExtensionMethodWithOutputParameter")] + [InlineData("ExtensionMethodWithGenericCollectionOfNestedType")] + [InlineData("ExtensionMethodWithParameterAttributes")] + [InlineData("ExtensionMethodWithDynamicReturnValue")] public Task Should_Return_Correct_Generated_Code_For_Non_Generic_Methods(string name) { // Given / When - var result = _fixture.Generate(name); + var result = _fixture.Generate("NonGeneric_" + name); // Then return VerifyCake(result)