Example #1
0
        public void SelectMessage_Visibility_Sets_Only_SelectMessage_Visible()
        {
            VisibilityModel defaultModel = _visibilityHelper.SetSelectMessageVisibility();

            Assert.False(defaultModel.IsInputQueueVisible);
            Assert.False(defaultModel.IsEditorPanelVisible);
            Assert.True(defaultModel.IsSelectMessageVisible);
            Assert.False(defaultModel.IsErrorQueueVisible);
        }
        private void GetSelectedErrorQueue()
        {
            bool validSelection = _queueHelper.ValidSelection(Selected);

            if (validSelection)
            {
                ErrorQueue           = _queueHelper.GetMessageQueue(Selected);
                Visibility           = _visibility.SetSelectMessageVisibility();
                Editor.MessageLabels = _queueHelper.GetListOfMessageLabelsFromErrorQueue(ErrorQueue);
                if (Editor.MessageLabels.Count != 0)
                {
                    return;
                }
                if (!IsRunningFromNUnit)
                {
                    MessageBox.Show("There are no messages in the queue.", "Empty", MessageBoxButtons.OK);
                }
            }
            else
            {
                Reset();
            }
        }