diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_Implementing_Static_Abstract_Interface.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_Implementing_Static_Abstract_Interface.verified.txt index f618402b99..30152fd032 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_Implementing_Static_Abstract_Interface.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_Implementing_Static_Abstract_Interface.verified.txt @@ -98,13 +98,10 @@ public static class StaticAbstractImpl_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_With_Constructor_Parameters_Extension_Discovery.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_With_Constructor_Parameters_Extension_Discovery.verified.txt index 2dd2a21ab0..adb9b0f611 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_With_Constructor_Parameters_Extension_Discovery.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_With_Constructor_Parameters_Extension_Discovery.verified.txt @@ -135,13 +135,10 @@ public static class MyService_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_With_Required_Members.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_With_Required_Members.verified.txt index 4574ddfb25..a82c1c08ce 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_With_Required_Members.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_With_Required_Members.verified.txt @@ -80,13 +80,10 @@ public static class ConfigBase_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_With_Same_Arity_Constructor_Overloads.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_With_Same_Arity_Constructor_Overloads.verified.txt index 8b48363896..db6823e029 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_With_Same_Arity_Constructor_Overloads.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Class_With_Same_Arity_Constructor_Overloads.verified.txt @@ -144,13 +144,10 @@ public static class MyService_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Conflict_With_Existing_Type_Falls_Back_To_Generated_Namespace.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Conflict_With_Existing_Type_Falls_Back_To_Generated_Namespace.verified.txt index 1e57ab71da..96eda327e4 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Conflict_With_Existing_Type_Falls_Back_To_Generated_Namespace.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Conflict_With_Existing_Type_Falls_Back_To_Generated_Namespace.verified.txt @@ -131,13 +131,10 @@ namespace TUnit.Mocks.Generated.MyApp extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/External_Interface_With_Indexer_Static_Extension_Discovery.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/External_Interface_With_Indexer_Static_Extension_Discovery.verified.txt index 3d56e5e65f..aa92a637f3 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/External_Interface_With_Indexer_Static_Extension_Discovery.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/External_Interface_With_Indexer_Static_Extension_Discovery.verified.txt @@ -151,13 +151,10 @@ namespace Microsoft.Extensions.Configuration extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/GenerateMock_Attribute_With_Concrete_Class.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/GenerateMock_Attribute_With_Concrete_Class.verified.txt index 4f831259ed..c612ee232b 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/GenerateMock_Attribute_With_Concrete_Class.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/GenerateMock_Attribute_With_Concrete_Class.verified.txt @@ -110,13 +110,10 @@ public static class MyService_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_Extension_Discovery.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_Extension_Discovery.verified.txt index 71dfd868e5..df4140dd3c 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_Extension_Discovery.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_Extension_Discovery.verified.txt @@ -140,13 +140,10 @@ public static class IRepository_T__MockMemberExtensions extension(global::TUnit.Mocks.Mock> mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Class_Type_Argument.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Class_Type_Argument.verified.txt index f6ab726593..37096d80f8 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Class_Type_Argument.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Class_Type_Argument.verified.txt @@ -141,13 +141,10 @@ namespace Sandbox extension(global::TUnit.Mocks.Mock> mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Enum_Type_Argument.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Enum_Type_Argument.verified.txt index 3401d77cca..b88a8c97e8 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Enum_Type_Argument.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Enum_Type_Argument.verified.txt @@ -118,13 +118,10 @@ namespace Sandbox extension(global::TUnit.Mocks.Mock> mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Multiple_Non_Builtin_Type_Arguments.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Multiple_Non_Builtin_Type_Arguments.verified.txt index 334ffd6e87..53a04de896 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Multiple_Non_Builtin_Type_Arguments.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Multiple_Non_Builtin_Type_Arguments.verified.txt @@ -125,13 +125,10 @@ namespace Sandbox extension(global::TUnit.Mocks.Mock> mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Nested_Generic_Type_Argument.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Nested_Generic_Type_Argument.verified.txt index f7f2fcd47f..92a0a51ed8 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Nested_Generic_Type_Argument.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Nested_Generic_Type_Argument.verified.txt @@ -118,13 +118,10 @@ namespace Sandbox extension(global::TUnit.Mocks.Mock> mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Nested_Namespace_Type_Argument.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Nested_Namespace_Type_Argument.verified.txt index 6f6fa5d14f..1b3ad3df3d 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Nested_Namespace_Type_Argument.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Generic_Interface_With_Nested_Namespace_Type_Argument.verified.txt @@ -141,13 +141,10 @@ namespace Sandbox extension(global::TUnit.Mocks.Mock> mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Directly_Inheriting_IEnumerable.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Directly_Inheriting_IEnumerable.verified.txt index b50482b645..6cb2586fb4 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Directly_Inheriting_IEnumerable.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Directly_Inheriting_IEnumerable.verified.txt @@ -156,13 +156,10 @@ public static class ICustomCollection_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_FluentUI_Shape_Nullable_Warnings.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_FluentUI_Shape_Nullable_Warnings.verified.txt index ff5c3697bd..ace9dea357 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_FluentUI_Shape_Nullable_Warnings.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_FluentUI_Shape_Nullable_Warnings.verified.txt @@ -129,13 +129,10 @@ public static class IDialogReference_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); @@ -517,13 +514,10 @@ public static class IDialogService_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_IEnumerable_Generic.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_IEnumerable_Generic.verified.txt index 330622a061..9e8dafff03 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_IEnumerable_Generic.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_IEnumerable_Generic.verified.txt @@ -114,13 +114,10 @@ public static class ITestEnum_T__MockMemberExtensions extension(global::TUnit.Mocks.Mock> mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Multiple_Interfaces.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Multiple_Interfaces.verified.txt index 0c4193e525..74f8e24126 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Multiple_Interfaces.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Multiple_Interfaces.verified.txt @@ -155,13 +155,10 @@ public static class IReadWriter_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Nested_Generic_IEnumerable.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Nested_Generic_IEnumerable.verified.txt index a042e2a3ea..aba151a8db 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Nested_Generic_IEnumerable.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_Inheriting_Nested_Generic_IEnumerable.verified.txt @@ -137,13 +137,10 @@ public static class IPagedResult_T__MockMemberExtensions extension(global::TUnit.Mocks.Mock> mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Async_Methods.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Async_Methods.verified.txt index 64cbe4e038..04014b7250 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Async_Methods.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Async_Methods.verified.txt @@ -228,13 +228,10 @@ public static class IAsyncService_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Events.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Events.verified.txt index e968f71229..e5e1b4d5c3 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Events.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Events.verified.txt @@ -185,13 +185,10 @@ public static class INotifier_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Method_Constraints_On_Explicit_Impl.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Method_Constraints_On_Explicit_Impl.verified.txt index 9fc5ba493d..47307014a3 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Method_Constraints_On_Explicit_Impl.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Method_Constraints_On_Explicit_Impl.verified.txt @@ -188,13 +188,10 @@ public static class IConstrained_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Methods.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Methods.verified.txt index 7c856b70b5..d695eaf2e3 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Methods.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Generic_Methods.verified.txt @@ -166,13 +166,10 @@ public static class IRepository_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Inherited_Static_Abstract_Members.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Inherited_Static_Abstract_Members.verified.txt index 2377602141..cd60128f33 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Inherited_Static_Abstract_Members.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Inherited_Static_Abstract_Members.verified.txt @@ -144,13 +144,10 @@ public static class IMyService_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Member_Names.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Member_Names.verified.txt index 5f71f51487..2b415b0832 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Member_Names.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Member_Names.verified.txt @@ -194,13 +194,10 @@ public static class IEscapedNames_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Parameter_Names.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Parameter_Names.verified.txt index 51a46afb7a..9d2601535a 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Parameter_Names.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Keyword_Parameter_Names.verified.txt @@ -168,13 +168,10 @@ public static class ITest_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Mixed_Members.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Mixed_Members.verified.txt index b6f5d8c320..17444abbbf 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Mixed_Members.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Mixed_Members.verified.txt @@ -242,13 +242,10 @@ public static class IService_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Multiple_Multi_Parameter_Events.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Multiple_Multi_Parameter_Events.verified.txt index 771a1ba220..78c0cb1a5a 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Multiple_Multi_Parameter_Events.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Multiple_Multi_Parameter_Events.verified.txt @@ -205,13 +205,10 @@ public static class IDualEvents_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Event.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Event.verified.txt index 5980a462c9..5ff4b009d6 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Event.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Event.verified.txt @@ -162,13 +162,10 @@ public static class IFoo_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Event_And_Nullable_Args.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Event_And_Nullable_Args.verified.txt index 452eb94b56..2e80f7f31c 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Event_And_Nullable_Args.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Event_And_Nullable_Args.verified.txt @@ -162,13 +162,10 @@ public static class IFoo_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Event_Args.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Event_Args.verified.txt index be9f29ca35..b06c3234a5 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Event_Args.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Event_Args.verified.txt @@ -162,13 +162,10 @@ public static class IFoo_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Reference_Type_Parameters.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Reference_Type_Parameters.verified.txt index 9be4701b75..bdd52e332d 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Reference_Type_Parameters.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Nullable_Reference_Type_Parameters.verified.txt @@ -292,13 +292,10 @@ public static class IFoo_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Obsolete_DiagnosticId_NamedArgs.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Obsolete_DiagnosticId_NamedArgs.verified.txt index 8ca582ef99..6efb1ec60c 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Obsolete_DiagnosticId_NamedArgs.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Obsolete_DiagnosticId_NamedArgs.verified.txt @@ -118,13 +118,10 @@ public static class IDeprecatedApi_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Obsolete_Members.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Obsolete_Members.verified.txt index d3388600c8..900901f66b 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Obsolete_Members.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Obsolete_Members.verified.txt @@ -103,13 +103,10 @@ public static class BaseDialog_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); @@ -538,13 +535,10 @@ public static class IDialogService_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Out_Ref_Parameters.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Out_Ref_Parameters.verified.txt index 19549d5189..9ca01fe38e 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Out_Ref_Parameters.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Out_Ref_Parameters.verified.txt @@ -152,13 +152,10 @@ public static class IDictionary_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Overloaded_Methods.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Overloaded_Methods.verified.txt index 7bd2db411c..76e911f88f 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Overloaded_Methods.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Overloaded_Methods.verified.txt @@ -245,13 +245,10 @@ public static class IFormatter_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Params_Array_Parameter.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Params_Array_Parameter.verified.txt index e39fcf7dab..b22ecfd8c4 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Params_Array_Parameter.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Params_Array_Parameter.verified.txt @@ -273,13 +273,10 @@ public static class IParamsSink_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Properties.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Properties.verified.txt index dad8692069..40c4e1f4f7 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Properties.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Properties.verified.txt @@ -137,13 +137,10 @@ public static class IRepository_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_RefStruct_Parameters.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_RefStruct_Parameters.verified.txt index 524f773e53..f73d676458 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_RefStruct_Parameters.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_RefStruct_Parameters.verified.txt @@ -171,13 +171,10 @@ public static class IBufferProcessor_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Members.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Members.verified.txt index 30bbf5041e..c5dd4685cf 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Members.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Members.verified.txt @@ -166,13 +166,10 @@ public static class IServiceFactory_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Transitive_Return_Type.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Transitive_Return_Type.verified.txt index 309c1c2d5f..1f36284591 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Transitive_Return_Type.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Static_Abstract_Transitive_Return_Type.verified.txt @@ -142,13 +142,10 @@ public static class IMyService_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Unconstrained_Nullable_Generic.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Unconstrained_Nullable_Generic.verified.txt index 256a11ce65..17a7694609 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Unconstrained_Nullable_Generic.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Interface_With_Unconstrained_Nullable_Generic.verified.txt @@ -155,13 +155,10 @@ public static class IFoo_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Method_With_More_Params_Than_Func_Action_Arity.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Method_With_More_Params_Than_Func_Action_Arity.verified.txt index ca2e62403d..789f61b4af 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Method_With_More_Params_Than_Func_Action_Arity.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Method_With_More_Params_Than_Func_Action_Arity.verified.txt @@ -136,13 +136,10 @@ public static class ILongMethodSignatures_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Interface_Mock_With_Class_Primary_And_Explicit_Impl.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Interface_Mock_With_Class_Primary_And_Explicit_Impl.verified.txt index 4c6d8adb1d..8caf85d554 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Interface_Mock_With_Class_Primary_And_Explicit_Impl.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Interface_Mock_With_Class_Primary_And_Explicit_Impl.verified.txt @@ -191,13 +191,10 @@ public static class DataContext_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Interface_Mock_With_Conflicting_Member_Names.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Interface_Mock_With_Conflicting_Member_Names.verified.txt index 0e6cb61174..c9b22dd52b 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Interface_Mock_With_Conflicting_Member_Names.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Interface_Mock_With_Conflicting_Member_Names.verified.txt @@ -218,13 +218,10 @@ public static class IConflictA_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Interface_Mock_With_Secondary_Setup_Surface.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Interface_Mock_With_Secondary_Setup_Surface.verified.txt index 53615d47ba..871c4a0a3b 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Interface_Mock_With_Secondary_Setup_Surface.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Interface_Mock_With_Secondary_Setup_Surface.verified.txt @@ -258,13 +258,10 @@ public static class IMultiLogger_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Method_Interface.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Method_Interface.verified.txt index 6e46cd9347..55c6e7c2f8 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Method_Interface.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Multi_Method_Interface.verified.txt @@ -199,13 +199,10 @@ public static class ICalculator_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_Filters_Internal_Virtual_Members_From_External_Assembly.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_Filters_Internal_Virtual_Members_From_External_Assembly.verified.txt index 8c3045c884..c2213f8925 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_Filters_Internal_Virtual_Members_From_External_Assembly.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_Filters_Internal_Virtual_Members_From_External_Assembly.verified.txt @@ -147,13 +147,10 @@ namespace ExternalLib extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_Filters_Members_With_Internal_Signature_Types.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_Filters_Members_With_Internal_Signature_Types.verified.txt index c1913c36c6..f2be186951 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_Filters_Members_With_Internal_Signature_Types.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_Filters_Members_With_Internal_Signature_Types.verified.txt @@ -107,13 +107,10 @@ namespace ExternalLib extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_Omits_Inaccessible_Property_Setters.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_Omits_Inaccessible_Property_Setters.verified.txt index 3602901dda..dbe4d3c69f 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_Omits_Inaccessible_Property_Setters.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_Omits_Inaccessible_Property_Setters.verified.txt @@ -140,13 +140,10 @@ namespace ExternalLib extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_With_Generic_Constrained_Virtual_Methods.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_With_Generic_Constrained_Virtual_Methods.verified.txt index f7e00390ba..1aa2e5123d 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_With_Generic_Constrained_Virtual_Methods.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Partial_Mock_With_Generic_Constrained_Virtual_Methods.verified.txt @@ -157,13 +157,10 @@ public static class BaseService_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Returning_Async_Method_With_More_Params_Than_Func_Action_Arity.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Returning_Async_Method_With_More_Params_Than_Func_Action_Arity.verified.txt index 46a3cc3d17..9f0ad9042b 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Returning_Async_Method_With_More_Params_Than_Func_Action_Arity.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Returning_Async_Method_With_More_Params_Than_Func_Action_Arity.verified.txt @@ -136,13 +136,10 @@ public static class ILongReturningSignature_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/SelfEquatable_Generates_EqualsOf_GetHashCodeOf_ToStringOf.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/SelfEquatable_Generates_EqualsOf_GetHashCodeOf_ToStringOf.verified.txt index 630d2da3cf..a176393873 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/SelfEquatable_Generates_EqualsOf_GetHashCodeOf_ToStringOf.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/SelfEquatable_Generates_EqualsOf_GetHashCodeOf_ToStringOf.verified.txt @@ -154,13 +154,10 @@ public static class SelfEquatableSnapshot_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Simple_Interface_With_One_Method.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Simple_Interface_With_One_Method.verified.txt index 7328f81fd2..66698e1087 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Simple_Interface_With_One_Method.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Simple_Interface_With_One_Method.verified.txt @@ -123,13 +123,10 @@ public static class IGreeter_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Static_Extension_Discovery_Via_Qualified_Name.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Static_Extension_Discovery_Via_Qualified_Name.verified.txt index a464646e8e..650bfddd3f 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Static_Extension_Discovery_Via_Qualified_Name.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Static_Extension_Discovery_Via_Qualified_Name.verified.txt @@ -124,13 +124,10 @@ namespace MyNamespace extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Static_Extension_Discovery_Without_Mock_Of.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Static_Extension_Discovery_Without_Mock_Of.verified.txt index 89bc500d52..9077035e44 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Static_Extension_Discovery_Without_Mock_Of.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Static_Extension_Discovery_Without_Mock_Of.verified.txt @@ -139,13 +139,10 @@ public static class INotifier_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Wrap_Mock_Filters_Internal_Virtual_Members_From_External_Assembly.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Wrap_Mock_Filters_Internal_Virtual_Members_From_External_Assembly.verified.txt index 87d6276206..08e0bb1ee2 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Wrap_Mock_Filters_Internal_Virtual_Members_From_External_Assembly.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Wrap_Mock_Filters_Internal_Virtual_Members_From_External_Assembly.verified.txt @@ -128,13 +128,10 @@ namespace ExternalLib extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Wrap_Mock_With_Generic_Constrained_Virtual_Methods.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Wrap_Mock_With_Generic_Constrained_Virtual_Methods.verified.txt index 2ad14dbb01..eb2975edd2 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Wrap_Mock_With_Generic_Constrained_Virtual_Methods.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Wrap_Mock_With_Generic_Constrained_Virtual_Methods.verified.txt @@ -127,13 +127,10 @@ public static class Repository_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Wrap_Mock_Without_Parameterless_Constructor.verified.txt b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Wrap_Mock_Without_Parameterless_Constructor.verified.txt index 6ad1cb9192..6cc8c4e772 100644 --- a/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Wrap_Mock_Without_Parameterless_Constructor.verified.txt +++ b/TUnit.Mocks.SourceGenerator.Tests/Snapshots/Wrap_Mock_Without_Parameterless_Constructor.verified.txt @@ -98,13 +98,10 @@ public static class RealClass_MockMemberExtensions extension(global::TUnit.Mocks.Mock mock) { - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock); - [global::System.Runtime.CompilerServices.OverloadResolutionPriority(-1)] public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider { get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock); diff --git a/TUnit.Mocks.SourceGenerator/Builders/MockMembersBuilder.cs b/TUnit.Mocks.SourceGenerator/Builders/MockMembersBuilder.cs index c208b36f76..7d735a8ecc 100644 --- a/TUnit.Mocks.SourceGenerator/Builders/MockMembersBuilder.cs +++ b/TUnit.Mocks.SourceGenerator/Builders/MockMembersBuilder.cs @@ -1492,6 +1492,10 @@ private static void GenerateMockControlPolyfills(CodeWriter writer, MockTypeMode // Property polyfills via C# 14 extension block so users write mock.Invocations rather // than mock.Invocations(). + // No [OverloadResolutionPriority] here: older-but-supported compilers (VS 17.14 / + // Roslyn 4.14) reject the attribute on non-indexer extension properties with CS9262 + // (#6370), and it ranks nothing anyway — the skip-emission above already guarantees no + // same-name member ever coexists in this containing type. if (emitInvocations || emitBehavior || emitDefaultValueProvider) { if (!first) writer.AppendLine(); @@ -1500,21 +1504,18 @@ private static void GenerateMockControlPolyfills(CodeWriter writer, MockTypeMode bool firstProp = true; if (emitInvocations) { - writer.AppendLine(PriorityMinusOneAttribute); writer.AppendLine("public global::System.Collections.Generic.IReadOnlyList Invocations => global::TUnit.Mocks.Mock.Invocations(mock);"); firstProp = false; } if (emitBehavior) { if (!firstProp) writer.AppendLine(); - writer.AppendLine(PriorityMinusOneAttribute); writer.AppendLine("public global::TUnit.Mocks.MockBehavior Behavior => global::TUnit.Mocks.Mock.Behavior(mock);"); firstProp = false; } if (emitDefaultValueProvider) { if (!firstProp) writer.AppendLine(); - writer.AppendLine(PriorityMinusOneAttribute); using (writer.Block("public global::TUnit.Mocks.IDefaultValueProvider? DefaultValueProvider")) { writer.AppendLine("get => global::TUnit.Mocks.Mock.GetDefaultValueProvider(mock);");