mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
removed strict mock from test base.
This commit is contained in:
parent
d2104e189f
commit
652a9d4a8a
6 changed files with 35 additions and 53 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue