diff --git a/code/Binary.FSharp/GeneratorBuilderFSharpExtensions.fs b/code/Binary.FSharp/GeneratorBuilderFSharpExtensions.fs index 146e4929..6ac59132 100644 --- a/code/Binary.FSharp/GeneratorBuilderFSharpExtensions.fs +++ b/code/Binary.FSharp/GeneratorBuilderFSharpExtensions.fs @@ -7,8 +7,8 @@ open System.Runtime.CompilerServices [] type GeneratorBuilderFSharpExtensions = [] - [] - [] + [] + [] static member AddFSharpConverterCreators(builder : IGeneratorBuilder) = builder .AddConverterCreator(ListConverterCreator()) diff --git a/code/Binary.Tests/Miscellaneous/TrimAnalyzerTests.cs b/code/Binary.Tests/Miscellaneous/TrimAnalyzerTests.cs index 3fc8b106..94828ecc 100644 --- a/code/Binary.Tests/Miscellaneous/TrimAnalyzerTests.cs +++ b/code/Binary.Tests/Miscellaneous/TrimAnalyzerTests.cs @@ -45,7 +45,7 @@ public void KnownRequiresDynamicCodeMessage() var memberWithKnownAttributes = memberAttributes.Where(x => x.Value.Any(x => x is RequiresDynamicCodeAttribute)).ToImmutableDictionary(); var messages = memberWithKnownAttributes.Select(x => x.Value.OfType().Single().Message).ToHashSet(); var message = Assert.Single(messages); - Assert.Equal("Requires dynamic code for binary serialization.", message); + Assert.Equal("Require dynamic code for binary serialization.", message); } [Fact(DisplayName = "Known 'RequiresUnreferencedCodeAttribute' Message")] @@ -57,6 +57,6 @@ public void KnownRequiresUnreferencedCodeMessage() var memberWithKnownAttributes = memberAttributes.Where(x => x.Value.Any(x => x is RequiresUnreferencedCodeAttribute)).ToImmutableDictionary(); var messages = memberWithKnownAttributes.Select(x => x.Value.OfType().Single().Message).ToHashSet(); var message = Assert.Single(messages); - Assert.Equal("Requires public members for binary serialization.", message); + Assert.Equal("Require public members for binary serialization.", message); } } diff --git a/code/Binary/Internal/CommonDefine.cs b/code/Binary/Internal/CommonDefine.cs index ece0ba16..08060227 100644 --- a/code/Binary/Internal/CommonDefine.cs +++ b/code/Binary/Internal/CommonDefine.cs @@ -6,9 +6,9 @@ internal static class CommonDefine { internal const string DebuggerDisplayValue = "{ToString(),nq}"; - internal const string RequiresDynamicCodeMessage = "Requires dynamic code for binary serialization."; + internal const string RequiresDynamicCodeMessage = "Require dynamic code for binary serialization."; - internal const string RequiresUnreferencedCodeMessage = "Requires public members for binary serialization."; + internal const string RequiresUnreferencedCodeMessage = "Require public members for binary serialization."; internal const BindingFlags PublicInstanceBindingFlags = BindingFlags.Instance | BindingFlags.Public; }