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