From 282870cd805a28a6c672eec16558fc7259c312bd Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Fri, 22 Apr 2011 13:13:32 -0700 Subject: [PATCH] Fixed AutoMoqer VerifyAll() bug --- NzbDrone.Core.Test/AutoMoq/AutoMoqer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core.Test/AutoMoq/AutoMoqer.cs b/NzbDrone.Core.Test/AutoMoq/AutoMoqer.cs index 91803a469..9af4fd78e 100644 --- a/NzbDrone.Core.Test/AutoMoq/AutoMoqer.cs +++ b/NzbDrone.Core.Test/AutoMoq/AutoMoqer.cs @@ -116,7 +116,8 @@ namespace AutoMoq foreach (var registeredMock in registeredMocks) { var mock = registeredMock.Value as Mock; - mock.VerifyAll(); + if (mock != null) + mock.VerifyAll(); } }