logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class OnceGuardTests

    Tests for OnceGuard and OnceGuard<TKey>: the warn-once latch behaviour every caller relies on — report the first time, stay quiet afterwards, and still report a different key.

    Inheritance
    object
    OnceGuardTests
    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 OnceGuardTests

    Constructors

    OnceGuardTests()

    Declaration
    public OnceGuardTests()

    Methods

    Keyed_HasEntered_DoesNotEnter()

    Declaration
    public void Keyed_HasEntered_DoesNotEnter()

    Keyed_HonorsTheSuppliedComparer()

    Declaration
    public void Keyed_HonorsTheSuppliedComparer()

    Keyed_Reset_ForgetsEveryKey()

    Declaration
    public void Keyed_Reset_ForgetsEveryKey()

    Keyed_TryEnter_IsPerKey()

    Declaration
    public void Keyed_TryEnter_IsPerKey()

    Keyless_Reset_AllowsOneMorePass()

    Declaration
    public void Keyless_Reset_AllowsOneMorePass()

    Keyless_TryEnter_IsTrueOnlyOnce()

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