public void GroupTimeoutTrueTest() { MinerApiWatchdog.Clear(); var minuteTimeout = new TimeSpan(0, 1, 0); var addTime = DateTime.UtcNow; var timestampTime = addTime.Add(new TimeSpan(0, 0, 30)); const string groupKey = "group1"; MinerApiWatchdog.AddGroup(groupKey, minuteTimeout, addTime); MinerApiWatchdog.UpdateApiTimestamp(groupKey, timestampTime); var checkTime = addTime.Add(new TimeSpan(0, 1, 30)); CollectionAssert.Contains(MinerApiWatchdog.GetTimedoutGroups(checkTime), groupKey); }
public void Combination01Test() { MinerApiWatchdog.Clear(); // TODO }