removed strict mock from test base.

This commit is contained in:
kay.one 2013-04-14 22:27:51 -07:00
commit 652a9d4a8a
6 changed files with 35 additions and 53 deletions

View file

@ -99,20 +99,6 @@ namespace NzbDrone.Test.Common
catch (Exception)
{
}
}
[Obsolete("Use Mock.Verify() instead")]
protected void WithStrictMocker()
{
return;
//TODO: Remove dependency on restrict mocks!
if (_mocker != null)
throw new InvalidOperationException("Can not switch to a strict container after container has been used. make sure this is the first call in your test.");
_mocker = new AutoMoqer(MockBehavior.Strict);
}
protected void WithTempAsAppPath()
@ -127,8 +113,6 @@ namespace NzbDrone.Test.Common
return Path.Combine(Directory.GetCurrentDirectory(), "Files", fileName);
}
protected void VerifyEventPublished<TEvent>() where TEvent : IEvent
{
VerifyEventPublished<TEvent>(Times.Once());