logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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
    object
    ReflectionCallTaskBehaviorTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Tasking.Tests.Application
    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
    Type Description
    Task

    RunAsync_CancellationTokenParameter_Injected()

    Declaration
    public Task RunAsync_CancellationTokenParameter_Injected()
    Returns
    Type Description
    Task

    RunAsync_CustomResolverFromServices_UsedForArgument()

    Declaration
    public Task RunAsync_CustomResolverFromServices_UsedForArgument()
    Returns
    Type Description
    Task

    RunAsync_DispatcherNotRequired_InvokesDirectly()

    Declaration
    public Task RunAsync_DispatcherNotRequired_InvokesDirectly()
    Returns
    Type Description
    Task

    RunAsync_DispatcherRequiresMainThread_InvokesThroughDispatcher()

    Declaration
    public Task RunAsync_DispatcherRequiresMainThread_InvokesThroughDispatcher()
    Returns
    Type Description
    Task

    RunAsync_InstanceMethod_DefaultActivatorCreatesTarget()

    Declaration
    public Task RunAsync_InstanceMethod_DefaultActivatorCreatesTarget()
    Returns
    Type Description
    Task

    RunAsync_InstanceMethod_UsesCustomActivator()

    Declaration
    public Task RunAsync_InstanceMethod_UsesCustomActivator()
    Returns
    Type Description
    Task

    RunAsync_InstanceTarget_ResolvedFromServicesWhenFlagSet()

    Declaration
    public Task RunAsync_InstanceTarget_ResolvedFromServicesWhenFlagSet()
    Returns
    Type Description
    Task

    RunAsync_IntArgument_ParsedAndBound()

    Declaration
    public Task RunAsync_IntArgument_ParsedAndBound()
    Returns
    Type Description
    Task

    RunAsync_MethodNotFound_ThrowsMissingMethod()

    Declaration
    public void RunAsync_MethodNotFound_ThrowsMissingMethod()

    RunAsync_MethodThrows_LastErrorIsInnerException()

    Declaration
    public Task RunAsync_MethodThrows_LastErrorIsInnerException()
    Returns
    Type Description
    Task

    RunAsync_MethodThrows_PropagatesTargetInvocation()

    Declaration
    public void RunAsync_MethodThrows_PropagatesTargetInvocation()

    RunAsync_MissingOptionalArg_UsesDefaultValue()

    Declaration
    public Task RunAsync_MissingOptionalArg_UsesDefaultValue()
    Returns
    Type Description
    Task

    RunAsync_MissingRequiredArg_ThrowsArgumentException()

    Declaration
    public void RunAsync_MissingRequiredArg_ThrowsArgumentException()

    RunAsync_ServiceParameter_ResolvedFromServices()

    Declaration
    public Task RunAsync_ServiceParameter_ResolvedFromServices()
    Returns
    Type Description
    Task

    RunAsync_StaticAsync_AwaitsReturnedTask()

    Declaration
    public Task RunAsync_StaticAsync_AwaitsReturnedTask()
    Returns
    Type Description
    Task

    RunAsync_StaticNoArgs_InvokesMethod()

    Declaration
    public Task RunAsync_StaticNoArgs_InvokesMethod()
    Returns
    Type Description
    Task

    RunAsync_StringArgument_BoundFromStringArgs()

    Declaration
    public Task RunAsync_StringArgument_BoundFromStringArgs()
    Returns
    Type Description
    Task

    RunAsync_Success_LogsRunningAndCompletedBreadcrumbs()

    Declaration
    public Task RunAsync_Success_LogsRunningAndCompletedBreadcrumbs()
    Returns
    Type Description
    Task

    RunAsync_TypeNotFound_LogsErrorDiagnostics()

    Declaration
    public Task RunAsync_TypeNotFound_LogsErrorDiagnostics()
    Returns
    Type Description
    Task

    RunAsync_TypeNotFound_ThrowsInvalidOperation()

    Declaration
    public void RunAsync_TypeNotFound_ThrowsInvalidOperation()

    SetUp()

    Declaration
    public void SetUp()
    In this article
    © 2026 Serenity. All Rights Reserved