public void GetExecuteErrors_AbandonedCode()
        {
            var client = new KernelClient(KernelManagerMock.Object, ChannelFactoryMock.Object);

            Assert.IsFalse(client.HasExecuteError());
            client.StartChannels();
            client.ExecuteLog.Add("1", new ExecutionEntry()
            {
                Complete       = false,
                Abandoned      = true,
                ExecutionIndex = -1,
                Request        = new Message(null)
            });
            Assert.AreEqual(1, client.GetExecuteErrors().Count);
            Assert.AreEqual(KernelClient.ABANDONED_CODE_ERROR_MESSAGE, client.GetExecuteErrors().First());
        }
        public void GetExecuteErrors_Single()
        {
            var client = new KernelClient(KernelManagerMock.Object, ChannelFactoryMock.Object);

            Assert.IsFalse(client.HasExecuteError());
            client.StartChannels();
            client.ExecuteLog.Add("1", new ExecutionEntry()
            {
                Complete       = true,
                ExecutionIndex = 1,
                Request        = new Message(null),
                Response       = new List <Message>()
                {
                    GetErrorMessage("Error message 1")
                }
            });
            Assert.AreEqual(1, client.GetExecuteErrors().Count);
            Assert.AreEqual("TestError: Error message 1", client.GetExecuteErrors().First());
        }