public void GetParameterType_GenericParamsParameterGiven_ShouldReturnParamsKeyword() { var method = typeof(SampleClass).GetMethod("Method11"); var parameter = method.GetParameters()[0]; var result = CSharpSourceCodeGeneration.GetParameterType(parameter); result.Should().Be("params TValue[] values"); }
public void GetParameterType_DynamicParameterGiven_ShouldReturnDynamicKeyword() { var method = typeof(SampleClass).GetMethod("Method9"); var parameter = method.GetParameters()[0]; var result = CSharpSourceCodeGeneration.GetParameterType(parameter); result.Should().Be("dynamic input"); }