Base:
method
GetArgument<T>
Microsoft.AspNetCore.Http.EndpointFilterInvocationContext.GetArgument<T>(System.Int32)
9 references to GetArgument
Microsoft.AspNetCore.Http.Abstractions.Tests (9)
EndpointFilterInvocationContextOfTTests.cs (9)
24
Assert.Throws<InvalidCastException>(() => context.
GetArgument
<string>(1));
25
Assert.Throws<InvalidCastException>(() => context.
GetArgument
<int>(0));
26
Assert.Throws<InvalidCastException>(() => context.
GetArgument
<string>(3));
27
var todo = context.
GetArgument
<ITodo>(3);
36
Assert.Equal("Foo", context.
GetArgument
<string>(0));
77
Assert.Null(context.
GetArgument
<string>(0));
78
Assert.Null(context.
GetArgument
<Todo>(3));
80
Assert.Throws<NullReferenceException>(() => context.
GetArgument
<int>(1));
81
Assert.Throws<NullReferenceException>(() => context.
GetArgument
<bool>(2));