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)
24Assert.Throws<InvalidCastException>(() => context.GetArgument<string>(1)); 25Assert.Throws<InvalidCastException>(() => context.GetArgument<int>(0)); 26Assert.Throws<InvalidCastException>(() => context.GetArgument<string>(3)); 27var todo = context.GetArgument<ITodo>(3); 36Assert.Equal("Foo", context.GetArgument<string>(0)); 77Assert.Null(context.GetArgument<string>(0)); 78Assert.Null(context.GetArgument<Todo>(3)); 80Assert.Throws<NullReferenceException>(() => context.GetArgument<int>(1)); 81Assert.Throws<NullReferenceException>(() => context.GetArgument<bool>(2));