public void TrackExecuteRequests() { var client = new KernelClient(KernelManagerMock.Object, ChannelFactoryMock.Object); client.StartChannels(); client.Execute("test"); Assert.IsTrue(client.HasPendingExecute()); Assert.AreEqual(1, client.GetPendingExecuteCount()); client.Execute("test"); Assert.IsTrue(client.HasPendingExecute()); Assert.AreEqual(2, client.GetPendingExecuteCount()); }
public void ClearExecuteLog() { var client = new KernelClient(KernelManagerMock.Object, ChannelFactoryMock.Object); client.StartChannels(); client.Execute("test"); client.ClearExecuteLog(); Assert.IsFalse(client.HasPendingExecute()); Assert.AreEqual(0, client.GetPendingExecuteCount()); }