public void WhenNodeIsVmNodeAndStopped_ThenCommandStateIsEnabled()
        {
            var node = new Mock <IProjectExplorerVmInstanceNode>();

            node.SetupGet(n => n.IsRunning).Returns(false);
            Assert.AreEqual(CommandState.Disabled, SerialOutputViewModel.GetCommandState(node.Object));
        }
        public void WhenNodeIsVmNodeAndRunning_ThenCommandStateIsEnabled()
        {
            var node = new Mock <IProjectModelInstanceNode>();

            node.SetupGet(n => n.IsRunning).Returns(true);
            Assert.AreEqual(CommandState.Enabled, SerialOutputViewModel.GetCommandState(node.Object));
        }
        public void WhenNodeIsZoneNode_ThenCommandStateIsUnavailable()
        {
            var node = new Mock <IProjectExplorerZoneNode>().Object;

            Assert.AreEqual(CommandState.Unavailable, SerialOutputViewModel.GetCommandState(node));
        }