mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
fixed broken tests
This commit is contained in:
parent
16c9232b12
commit
c90a96c2e0
4 changed files with 25 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using FluentAssertions;
|
||||
using Moq;
|
||||
using NLog;
|
||||
|
@ -42,6 +43,9 @@ namespace NzbDrone.Test.Common
|
|||
|
||||
public abstract class TestBase : LoggingTest
|
||||
{
|
||||
|
||||
private static readonly Random _random = new Random();
|
||||
|
||||
private AutoMoqer _mocker;
|
||||
protected AutoMoqer Mocker
|
||||
{
|
||||
|
@ -58,6 +62,15 @@ namespace NzbDrone.Test.Common
|
|||
|
||||
protected Mock<RestProvider> MockedRestProvider { get; private set; }
|
||||
|
||||
protected int RandomNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
return _random.Next(0, int.MaxValue);
|
||||
}
|
||||
}
|
||||
|
||||
private string VirtualPath
|
||||
{
|
||||
get
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue