logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityHittableServiceSignalTests

    PlayMode tests for UnityHittableService's signal dispatch on TakeHit. Uses the shared RecordingEventDispatcherService to assert exact payloads without depending on a real dispatcher implementation.

    Inheritance
    object
    UnityHittableServiceSignalTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityHittable.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class UnityHittableServiceSignalTests

    Constructors

    UnityHittableServiceSignalTests()

    Declaration
    public UnityHittableServiceSignalTests()

    Methods

    SetUp()

    Declaration
    public void SetUp()

    TakeHit_AfterDestroyed_DispatchesNothing()

    Declaration
    public void TakeHit_AfterDestroyed_DispatchesNothing()

    TakeHit_Damaging_DispatchesHittableHitSignal_WithPayload()

    Declaration
    public void TakeHit_Damaging_DispatchesHittableHitSignal_WithPayload()

    TakeHit_Indestructible_DispatchesHittableHitSignal_WithRemainingHealthMinusOne()

    Declaration
    public void TakeHit_Indestructible_DispatchesHittableHitSignal_WithRemainingHealthMinusOne()

    TakeHit_KillingBlow_DispatchesBothHitAndDestroyed_ExactlyOnce()

    Declaration
    public void TakeHit_KillingBlow_DispatchesBothHitAndDestroyed_ExactlyOnce()

    TakeHit_NullDispatcher_DoesNotThrow()

    Declaration
    public void TakeHit_NullDispatcher_DoesNotThrow()

    TakeHit_UnknownId_DispatchesNothing()

    Declaration
    public void TakeHit_UnknownId_DispatchesNothing()

    TearDown()

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