This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
gameservicewarden/tests/GameServiceWarden.Core.Tests/Modules/FakeServiceManagerMonitor.cs
Harrison Deng f5a181d2f2 Added tests for LRUCache.
Moved core test code to reflect changes in core code.

Removed unused using directives.
2021-04-19 14:41:11 -05:00

28 lines
701 B
C#

using System;
using System.Collections.Generic;
using GameServiceWarden.API.Games;
using GameServiceWarden.Core.Module;
namespace GameServiceWarden.Core.Tests.Modules
{
public class FakeServiceManagerMonitor : IServiceManagerMonitor
{
public List<ServiceManagerState> states = new List<ServiceManagerState>();
public ServiceManagerState this[int i]
{
get
{
return states[i];
}
}
public void Present(ServiceManagerState state)
{
states.Add(state);
}
public ServiceManagerState GetLastState()
{
return states[states.Count - 1];
}
}
}