Class ReflectionCallTaskBehaviorTests
Behavioral coverage for Serenity.Tasking.Application.Tasks.ReflectionCallTask: construction guards,
argument binding, target resolution, dispatcher routing, and error paths.
Target methods live on a public top-level type so reflection resolves them by full name.
Inheritance
ReflectionCallTaskBehaviorTests
Assembly: Tests.dll
Syntax
public class ReflectionCallTaskBehaviorTests
Constructors
ReflectionCallTaskBehaviorTests()
Declaration
public ReflectionCallTaskBehaviorTests()
Methods
Ctor_NegativeWeight_NormalizedToOne()
Declaration
public void Ctor_NegativeWeight_NormalizedToOne()
Ctor_NullId_Throws()
Declaration
public void Ctor_NullId_Throws()
Ctor_PositiveWeight_Preserved()
Declaration
public void Ctor_PositiveWeight_Preserved()
Ctor_StoresIdAndCriticality()
Declaration
public void Ctor_StoresIdAndCriticality()
Ctor_ZeroWeight_NormalizedToOne()
Declaration
public void Ctor_ZeroWeight_NormalizedToOne()
ImplementsITask()
Declaration
public void ImplementsITask()
LastError_NullBeforeRun()
Declaration
public void LastError_NullBeforeRun()
RunAsync_BoolArgument_ParsedAndBound()
Declaration
public Task RunAsync_BoolArgument_ParsedAndBound()
Returns
RunAsync_CancellationTokenParameter_Injected()
Declaration
public Task RunAsync_CancellationTokenParameter_Injected()
Returns
RunAsync_CustomResolverFromServices_UsedForArgument()
Declaration
public Task RunAsync_CustomResolverFromServices_UsedForArgument()
Returns
RunAsync_DispatcherNotRequired_InvokesDirectly()
Declaration
public Task RunAsync_DispatcherNotRequired_InvokesDirectly()
Returns
RunAsync_DispatcherRequiresMainThread_InvokesThroughDispatcher()
Declaration
public Task RunAsync_DispatcherRequiresMainThread_InvokesThroughDispatcher()
Returns
RunAsync_InstanceMethod_DefaultActivatorCreatesTarget()
Declaration
public Task RunAsync_InstanceMethod_DefaultActivatorCreatesTarget()
Returns
RunAsync_InstanceMethod_UsesCustomActivator()
Declaration
public Task RunAsync_InstanceMethod_UsesCustomActivator()
Returns
RunAsync_InstanceTarget_ResolvedFromServicesWhenFlagSet()
Declaration
public Task RunAsync_InstanceTarget_ResolvedFromServicesWhenFlagSet()
Returns
RunAsync_IntArgument_ParsedAndBound()
Declaration
public Task RunAsync_IntArgument_ParsedAndBound()
Returns
RunAsync_MethodNotFound_ThrowsMissingMethod()
Declaration
public void RunAsync_MethodNotFound_ThrowsMissingMethod()
RunAsync_MethodThrows_LastErrorIsInnerException()
Declaration
public Task RunAsync_MethodThrows_LastErrorIsInnerException()
Returns
RunAsync_MethodThrows_PropagatesTargetInvocation()
Declaration
public void RunAsync_MethodThrows_PropagatesTargetInvocation()
RunAsync_MissingOptionalArg_UsesDefaultValue()
Declaration
public Task RunAsync_MissingOptionalArg_UsesDefaultValue()
Returns
RunAsync_MissingRequiredArg_ThrowsArgumentException()
Declaration
public void RunAsync_MissingRequiredArg_ThrowsArgumentException()
RunAsync_ServiceParameter_ResolvedFromServices()
Declaration
public Task RunAsync_ServiceParameter_ResolvedFromServices()
Returns
RunAsync_StaticAsync_AwaitsReturnedTask()
Declaration
public Task RunAsync_StaticAsync_AwaitsReturnedTask()
Returns
RunAsync_StaticNoArgs_InvokesMethod()
Declaration
public Task RunAsync_StaticNoArgs_InvokesMethod()
Returns
RunAsync_StringArgument_BoundFromStringArgs()
Declaration
public Task RunAsync_StringArgument_BoundFromStringArgs()
Returns
RunAsync_Success_LogsRunningAndCompletedBreadcrumbs()
Declaration
public Task RunAsync_Success_LogsRunningAndCompletedBreadcrumbs()
Returns
RunAsync_TypeNotFound_LogsErrorDiagnostics()
Declaration
public Task RunAsync_TypeNotFound_LogsErrorDiagnostics()
Returns
RunAsync_TypeNotFound_ThrowsInvalidOperation()
Declaration
public void RunAsync_TypeNotFound_ThrowsInvalidOperation()
SetUp()
Declaration