Fixed AutoMoqer VerifyAll() bug

pull/2/head
kay.one 14 years ago
parent 23f6cc3901
commit 282870cd80

@ -116,7 +116,8 @@ namespace AutoMoq
foreach (var registeredMock in registeredMocks) foreach (var registeredMock in registeredMocks)
{ {
var mock = registeredMock.Value as Mock; var mock = registeredMock.Value as Mock;
mock.VerifyAll(); if (mock != null)
mock.VerifyAll();
} }
} }

Loading…
Cancel
Save