logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityEditorOsMonitorCacheTests

    EditMode tests for UnityEditorOsMonitorCache. A fake provider factory is injected so the cache returns deterministic data instead of querying the real OS; the static cache is reset (factory cleared + invalidated) in TearDown so cases do not leak into each other.

    Inheritance
    object
    UnityEditorOsMonitorCacheTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnitySystemConfiguration.Tests.Editor
    Assembly: Tests.Editor.dll
    Syntax
    public class UnityEditorOsMonitorCacheTests

    Constructors

    UnityEditorOsMonitorCacheTests()

    Declaration
    public UnityEditorOsMonitorCacheTests()

    Methods

    ConfigureFactory_InvalidatesPreviousCache()

    Declaration
    public void ConfigureFactory_InvalidatesPreviousCache()

    GetMonitors_ForceRefresh_AlwaysQueriesProvider()

    Declaration
    public void GetMonitors_ForceRefresh_AlwaysQueriesProvider()

    GetMonitors_ProviderThrows_ReturnsEmptyListInsteadOfThrowing()

    Declaration
    public void GetMonitors_ProviderThrows_ReturnsEmptyListInsteadOfThrowing()

    GetMonitors_WithFactory_ForceRefresh_ReturnsProviderData()

    Declaration
    public void GetMonitors_WithFactory_ForceRefresh_ReturnsProviderData()

    GetMonitors_WithinThrottleWindow_ServesCachedDataWithoutSecondFetch()

    Declaration
    public void GetMonitors_WithinThrottleWindow_ServesCachedDataWithoutSecondFetch()

    Invalidate_ForcesFreshFetchOnNextNonForcedRead()

    Declaration
    public void Invalidate_ForcesFreshFetchOnNextNonForcedRead()

    TearDown()

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