Normalize injected language tags

This commit is contained in:
Tyrrrz
2023-08-20 22:14:38 +03:00
parent ab24ca8604
commit a4726fcefd
33 changed files with 185 additions and 185 deletions

View File

@@ -66,7 +66,7 @@ public class CancellationSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand

View File

@@ -63,7 +63,7 @@ public class ConsoleSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -124,7 +124,7 @@ public class ConsoleSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -169,7 +169,7 @@ public class ConsoleSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand

View File

@@ -20,7 +20,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -60,7 +60,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -100,7 +100,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -158,7 +158,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -198,7 +198,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -238,7 +238,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -278,7 +278,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -318,7 +318,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public enum CustomEnum { One = 1, Two = 2, Three = 3 }
@@ -360,7 +360,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -408,7 +408,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public enum CustomEnum { One = 1, Two = 2, Three = 3 }
@@ -458,7 +458,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public class CustomType
{
@@ -505,7 +505,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public class CustomTypeA
{
@@ -573,7 +573,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public class CustomConverter : BindingConverter<int>
{
@@ -619,7 +619,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -665,7 +665,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -711,7 +711,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -757,7 +757,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -803,7 +803,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public class CustomType
{
@@ -843,7 +843,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public class CustomType : IEnumerable<object>
{
@@ -886,7 +886,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -922,7 +922,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public class ValidatorA : BindingValidator<int>
{
@@ -968,7 +968,7 @@ public class ConversionSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public class CustomType
{

View File

@@ -52,7 +52,7 @@ public class DirectivesSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command("cmd")]
public class Command : ICommand

View File

@@ -24,7 +24,7 @@ public class EnvironmentSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -76,7 +76,7 @@ public class EnvironmentSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -124,7 +124,7 @@ public class EnvironmentSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand

View File

@@ -21,7 +21,7 @@ public class ErrorReportingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -61,7 +61,7 @@ public class ErrorReportingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -102,7 +102,7 @@ public class ErrorReportingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -139,7 +139,7 @@ public class ErrorReportingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -179,7 +179,7 @@ public class ErrorReportingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand

View File

@@ -43,7 +43,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class DefaultCommand : ICommand
@@ -77,7 +77,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandTypes = DynamicCommandBuilder.CompileMany(
// language=cs
// lang=csharp
"""
[Command("cmd")]
public class NamedCommand : ICommand
@@ -117,7 +117,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandTypes = DynamicCommandBuilder.CompileMany(
// language=cs
// lang=csharp
"""
[Command]
public class DefaultCommand : ICommand
@@ -162,7 +162,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandTypes = DynamicCommandBuilder.CompileMany(
// language=cs
// lang=csharp
"""
[Command]
public class DefaultCommand : ICommand
@@ -261,7 +261,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command(Description = "Description of the default command.")]
public class DefaultCommand : ICommand
@@ -297,7 +297,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandTypes = DynamicCommandBuilder.CompileMany(
// language=cs
// lang=csharp
"""
[Command]
public class DefaultCommand : ICommand
@@ -339,7 +339,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -385,7 +385,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
// Base members appear last in reflection order
public abstract class CommandBase : ICommand
@@ -436,7 +436,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -481,7 +481,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -525,7 +525,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -562,7 +562,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command("cmd")]
public class Command : ICommand
@@ -603,7 +603,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public enum CustomEnum { One, Two, Three }
@@ -649,7 +649,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public enum CustomEnum { One, Two, Three }
@@ -695,7 +695,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public enum CustomEnum { One, Two, Three }
@@ -741,7 +741,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public enum CustomEnum { One, Two, Three }
@@ -786,7 +786,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public enum CustomEnum { One, Two, Three }
@@ -857,7 +857,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandTypes = DynamicCommandBuilder.CompileMany(
// language=cs
// lang=csharp
"""
[Command("cmd1", Description = "Description of one command.")]
public class FirstCommand : ICommand
@@ -922,7 +922,7 @@ public class HelpTextSpecs : SpecsBase
{
// Arrange
var commandTypes = DynamicCommandBuilder.CompileMany(
// language=cs
// lang=csharp
"""
[Command("cmd1")]
public class FirstCommand : ICommand

View File

@@ -21,7 +21,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -61,7 +61,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -101,7 +101,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -153,7 +153,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -205,7 +205,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -253,7 +253,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -299,7 +299,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -345,7 +345,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -396,7 +396,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -447,7 +447,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -498,7 +498,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -546,7 +546,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
public static class SharedContext
{
@@ -629,7 +629,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -669,7 +669,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -705,7 +705,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -741,7 +741,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -777,7 +777,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -817,7 +817,7 @@ public class OptionBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand

View File

@@ -20,7 +20,7 @@ public class ParameterBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -68,7 +68,7 @@ public class ParameterBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -128,7 +128,7 @@ public class ParameterBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -167,7 +167,7 @@ public class ParameterBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -206,7 +206,7 @@ public class ParameterBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -254,7 +254,7 @@ public class ParameterBindingSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand

View File

@@ -20,7 +20,7 @@ public class RoutingSpecs : SpecsBase
{
// Arrange
var commandTypes = DynamicCommandBuilder.CompileMany(
// language=cs
// lang=csharp
"""
[Command]
public class DefaultCommand : ICommand
@@ -77,7 +77,7 @@ public class RoutingSpecs : SpecsBase
{
// Arrange
var commandTypes = DynamicCommandBuilder.CompileMany(
// language=cs
// lang=csharp
"""
[Command]
public class DefaultCommand : ICommand
@@ -134,7 +134,7 @@ public class RoutingSpecs : SpecsBase
{
// Arrange
var commandTypes = DynamicCommandBuilder.CompileMany(
// language=cs
// lang=csharp
"""
[Command]
public class DefaultCommand : ICommand

View File

@@ -22,7 +22,7 @@ public class TypeActivationSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -60,7 +60,7 @@ public class TypeActivationSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -96,7 +96,7 @@ public class TypeActivationSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -138,7 +138,7 @@ public class TypeActivationSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand
@@ -193,7 +193,7 @@ public class TypeActivationSpecs : SpecsBase
{
// Arrange
var commandType = DynamicCommandBuilder.Compile(
// language=cs
// lang=csharp
"""
[Command]
public class Command : ICommand