Exemple #1
0
        public void IsFinalStep_GivenValidEndStateArgs_ShouldReturnTrue()
        {
            //---------------Set up test pack-------------------
            var debugState = new DebugState()
            {
                StateType          = StateType.End,
                OriginalInstanceID = Guid.Empty,
                ID       = Guid.Empty,
                ParentID = Guid.Empty,
            };

            //---------------Assert Precondition----------------
            Assert.IsNull(debugState.ParentID);
            //---------------Execute Test ----------------------
            var isFinalStep = debugState.IsFinalStep();

            //---------------Test Result -----------------------
            Assert.IsTrue(isFinalStep);
        }