microsoftarchive / cqrs-journey

Microsoft patterns & pratices CQRS Journey sample application
http://cqrsjourney.github.com/
Other
1.39k stars 459 forks source link

Unit tests failures #603

Closed manikrish closed 12 years ago

manikrish commented 12 years ago

---- Test started: Assembly: Azure.Tests.dll ------

Test 'Infrastructure.Azure.Tests.EventSourcing.EventStoreBusPublisherFixture.when_calling_publish.then_deletes_message_after_publishing' failed: Moq.MockException : Expected invocation on the mock at least once, but was never performed: q => q.DeletePendingAsync(.partitionKey, .testEvent.RowKey, It.IsAny<Action1>(), It.IsAny<Action1>()) No setups configured.

Performed invocations: IPendingEventsQueue.GetPartitionsWithPendingEvents() IPendingEventsQueue.GetPendingAsync("22dbd7ca-fa04-4563-b339-83891bab0464", System.Action2[System.Collections.Generic.IEnumerable1[Infrastructure.Azure.EventSourcing.IEventRecord],System.Boolean], System.Action1[System.Exception]) at Moq.Mock.ThrowVerifyException(MethodCall expected, IEnumerable1 setups, IEnumerable1 actualCalls, Expression expression, Times times, Int32 callCount) at Moq.Mock.VerifyCalls(Interceptor targetInterceptor, MethodCall expected, Expression expression, Times times) at Moq.Mock.Verify[T](Mock mock, Expression1 expression, Times times, String failMessage) at Moq.Mock1.Verify(Expression1 expression) EventSourcing\EventStoreBusPublisherFixture.cs(88,0): at Infrastructure.Azure.Tests.EventSourcing.EventStoreBusPublisherFixture.when_calling_publish.then_deletes_message_after_publishing()

Test 'Infrastructure.Azure.Tests.EventSourcing.EventStoreBusPublisherFixture.when_starting_with_pending_events.then_deletes_message_after_publishing' failed: Moq.MockException : Expected invocation on the mock at least once, but was never performed: q => q.DeletePendingAsync(.pendingKeys[.i], .rowKey, It.IsAny<Action1>(), It.IsAny<Action1>()) No setups configured.

Performed invocations: IPendingEventsQueue.GetPartitionsWithPendingEvents() IPendingEventsQueue.GetPendingAsync("Key1", System.Action2[System.Collections.Generic.IEnumerable1[Infrastructure.Azure.EventSourcing.IEventRecord],System.Boolean], System.Action1[System.Exception]) IPendingEventsQueue.GetPendingAsync("Key2", System.Action2[System.Collections.Generic.IEnumerable1[Infrastructure.Azure.EventSourcing.IEventRecord],System.Boolean], System.Action1[System.Exception]) IPendingEventsQueue.GetPendingAsync("Key3", System.Action2[System.Collections.Generic.IEnumerable1[Infrastructure.Azure.EventSourcing.IEventRecord],System.Boolean], System.Action1[System.Exception]) IPendingEventsQueue.DeletePendingAsync("Key1", "Unpublished_0001", System.Action1[System.Boolean], System.Action1[System.Exception]) IPendingEventsQueue.DeletePendingAsync("Key2", "Unpublished_0001", System.Action1[System.Boolean], System.Action1[System.Exception]) at Moq.Mock.ThrowVerifyException(MethodCall expected, IEnumerable1 setups, IEnumerable1 actualCalls, Expression expression, Times times, Int32 callCount) at Moq.Mock.VerifyCalls(Interceptor targetInterceptor, MethodCall expected, Expression expression, Times times) at Moq.Mock.Verify[T](Mock mock, Expression1 expression, Times times, String failMessage) at Moq.Mock1.Verify(Expression1 expression) EventSourcing\EventStoreBusPublisherFixture.cs(164,0): at Infrastructure.Azure.Tests.EventSourcing.EventStoreBusPublisherFixture.when_starting_with_pending_events.then_deletes_message_after_publishing()

jdom commented 12 years ago

Can't repro