Skip to content

Commit

Permalink
expectedReturnType renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier García de la Noceda Argüelles committed Jul 17, 2024
1 parent d99a648 commit 9fc8dbe
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ public class XmlMethodInfoExtensionsTests
{
[Theory]
[ClassData(typeof(DifferentMethodsSignaturesData))]
public void DifferentMethodsSignatures_ShouldBeExpected(MethodInfo methodInfo, IEnumerable<string> expectedParameterNames, Type expectedReturnParameterType)
public void DifferentMethodsSignatures_ShouldBeExpected(MethodInfo methodInfo, IEnumerable<string> expectedParameterNames, Type expectedReturnType)
{
var underlyingGenericMethod = methodInfo.GetUnderlyingGenericTypeMethod();
Assert.NotNull(underlyingGenericMethod);
var underlyingGenericMethodParameters = underlyingGenericMethod.GetParameters();
Assert.NotNull(underlyingGenericMethodParameters);
Assert.NotEmpty(underlyingGenericMethodParameters);
Assert.Equal(expectedParameterNames, underlyingGenericMethodParameters.Select(s => s.Name));
Assert.NotNull(underlyingGenericMethod.ReturnParameter);
Assert.Equal(expectedReturnParameterType, underlyingGenericMethod.ReturnType);
Assert.NotNull(underlyingGenericMethod.ReturnType);
Assert.Equal(expectedReturnType, underlyingGenericMethod.ReturnType);
}

public class DifferentMethodsSignaturesData : TheoryData<MethodInfo, IEnumerable<string>, Type>
Expand Down

0 comments on commit 9fc8dbe

Please sign in to comment.