Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix analyzer message formatting for RS1032
  • Loading branch information
MattKotsenas committed Jun 12, 2024
commit 77fe72313403505d214893fd51f5912d018e5c42
12 changes: 6 additions & 6 deletions Source/Moq.Analyzers/Diagnostics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@ internal static class Diagnostics

internal const string NoSealedClassMocksId = "Moq1000";
internal const string NoSealedClassMocksTitle = "Moq: Sealed class mocked";
internal const string NoSealedClassMocksMessage = "Sealed classes cannot be mocked.";
internal const string NoSealedClassMocksMessage = "Sealed classes cannot be mocked";

internal const string NoConstructorArgumentsForInterfaceMockId = "Moq1001";
internal const string NoConstructorArgumentsForInterfaceMockTitle = "Moq: Parameters specified for mocked interface";
internal const string NoConstructorArgumentsForInterfaceMockMessage = "Mocked interfaces cannot have constructor parameters.";
internal const string NoConstructorArgumentsForInterfaceMockMessage = "Mocked interfaces cannot have constructor parameters";

internal const string ConstructorArgumentsShouldMatchId = "Moq1002";
internal const string ConstructorArgumentsShouldMatchTitle = "Moq: No matching constructor";
internal const string ConstructorArgumentsShouldMatchMessage = "Parameters provided into mock do not match any existing constructors.";
internal const string ConstructorArgumentsShouldMatchMessage = "Parameters provided into mock do not match any existing constructors";

internal const string CallbackSignatureShouldMatchMockedMethodId = "Moq1100";
internal const string CallbackSignatureShouldMatchMockedMethodTitle = "Moq: Bad callback parameters";
internal const string CallbackSignatureShouldMatchMockedMethodMessage = "Callback signature must match the signature of the mocked method.";
internal const string CallbackSignatureShouldMatchMockedMethodMessage = "Callback signature must match the signature of the mocked method";

internal const string NoMethodsInPropertySetupId = "Moq1101";
internal const string NoMethodsInPropertySetupTitle = "Moq: Property setup used for a method";
internal const string NoMethodsInPropertySetupMessage = "SetupGet/SetupSet should be used for properties, not for methods.";
internal const string NoMethodsInPropertySetupMessage = "SetupGet/SetupSet should be used for properties, not for methods";

internal const string SetupShouldBeUsedOnlyForOverridableMembersId = "Moq1200";
internal const string SetupShouldBeUsedOnlyForOverridableMembersTitle = "Moq: Invalid setup parameter";
internal const string SetupShouldBeUsedOnlyForOverridableMembersMessage = "Setup should be used only for overridable members.";
internal const string SetupShouldBeUsedOnlyForOverridableMembersMessage = "Setup should be used only for overridable members";

internal const string SetupShouldNotIncludeAsyncResultId = "Moq1201";
internal const string SetupShouldNotIncludeAsyncResultTitle = SetupShouldBeUsedOnlyForOverridableMembersTitle;
Expand Down