logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ReentrancyGateTests

    Tests for ReentrancyGate: the "not while I am already running" gate, and the property that separates it from its OnceGuard sibling — it releases, so the guarded work is reachable again after it finishes.

    Inheritance
    object
    ReentrancyGateTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Shared.Tests.Utils
    Assembly: Tests.dll
    Syntax
    public class ReentrancyGateTests

    Constructors

    ReentrancyGateTests()

    Declaration
    public ReentrancyGateTests()

    Methods

    Exit_WithoutEnter_LeavesTheGateFree()

    Declaration
    public void Exit_WithoutEnter_LeavesTheGateFree()

    IsInside_TracksEveryEnterAndExit()

    Declaration
    public void IsInside_TracksEveryEnterAndExit()

    TryEnter_AfterExit_IsAllowedAgain()

    Declaration
    public void TryEnter_AfterExit_IsAllowedAgain()

    TryEnter_FirstCall_TakesTheGate()

    Declaration
    public void TryEnter_FirstCall_TakesTheGate()

    TryEnter_WhileInside_IsRefused()

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