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.
Inherited Members
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()