mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
removed strict mock from test base.
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user