コード例 #1
0
            public void ShouldEnqueueRollbackAndSync()
            {
                var mockConn = new Mock <IConnection>();

                BoltV1.RollbackTransaction(mockConn.Object);

                mockConn.Verify(x => x.Enqueue(Rollback, It.IsAny <BookmarkCollector>(), DiscardAll), Times.Once);
                mockConn.Verify(x => x.Sync(), Times.Once);
            }