Dev2.Core.Tests.DebugOutputViewModelTest.DebugOutputViewModel_Append_TypeIsEndAndNotLastStep_NothingAppended C# (CSharp) Method

DebugOutputViewModel_Append_TypeIsEndAndNotLastStep_NothingAppended() private method

        public void DebugOutputViewModel_Append_TypeIsEndAndNotLastStep_NothingAppended()
        {
            var envRepo = GetEnvironmentRepository();
            var viewModel = new DebugOutputViewModel(new Mock<IEventPublisher>().Object, envRepo, new Mock<IDebugOutputFilterStrategy>().Object);
            var content = new DebugState { DisplayName = "Content", ID = Guid.NewGuid(), ParentID = Guid.Empty, StateType = StateType.End, ActivityType = ActivityType.Step, SessionID = viewModel.SessionID };

            //------------Execute Test---------------------------
            viewModel.Append(content);

            // Assert Nothing Appended
            Assert.AreEqual(0, viewModel.RootItems.Count);
        }
DebugOutputViewModelTest