fixed broken tests

This commit is contained in:
kay.one 2013-09-03 23:15:35 -07:00
parent 16c9232b12
commit c90a96c2e0
4 changed files with 25 additions and 2 deletions

View file

@ -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