Exemplo n.º 1
0
        public void Execution_Stack_Test_No_Access_To_Other_Thread()
        {
            var SUT = new ExecutionStack();

            SUT.ProcessEntry(1, Guid.NewGuid());
            Assert.IsTrue(SUT.IsStackEmpty(2));
            SUT.ClearStack();
        }
Exemplo n.º 2
0
        public void Execution_Stack_Test_Clear_Stack()
        {
            var SUT = new ExecutionStack();

            SUT.ProcessEntry(1, Guid.NewGuid());
            SUT.ClearStack();
            Assert.IsTrue(SUT.IsStackEmpty(1));
        }
Exemplo n.º 3
0
        public void Execution_Stack_Test_Add_Guid_Makes_Stack_Nonempty()
        {
            var SUT = new ExecutionStack();

            SUT.ProcessEntry(1, Guid.NewGuid());
            Assert.IsTrue(!SUT.IsStackEmpty(1));
            SUT.ClearStack();
        }
Exemplo n.º 4
0
        public void Execution_Stack_Test_Method_Exception_Removes_Guid()
        {
            var SUT = new ExecutionStack();

            SUT.ProcessEntry(1, Guid.NewGuid());
            SUT.ProcessException(1);
            Assert.IsTrue(SUT.IsStackEmpty(1));
            SUT.ClearStack();
        }
Exemplo n.º 5
0
        public void Execution_Stack_Test_Defaults_To_Empty_Stack()
        {
            var SUT = new ExecutionStack();

            Assert.IsTrue(SUT.IsStackEmpty(1));
        }