Esempio n. 1
0
        public void Execution_Stack_Test_Check_Equality_Of_Mult_Pushed_Methods()
        {
            var SUT = new ExecutionStack();
            var g1  = Guid.NewGuid();
            var g2  = Guid.NewGuid();

            SUT.ProcessEntry(1, g1);
            SUT.ProcessEntry(1, g2);
            Assert.IsTrue(SUT.ExecutingGuid(1) == g2);
            SUT.ProcessExit(1);
            Assert.IsTrue(SUT.ExecutingGuid(1) == g1);
        }
Esempio n. 2
0
        public void Execution_Stack_Test_Check_Equality_Of_Pushed_Method()
        {
            var SUT     = new ExecutionStack();
            var newGuid = Guid.NewGuid();

            SUT.ProcessEntry(1, newGuid);
            Assert.IsTrue(SUT.ExecutingGuid(1) == newGuid);
        }
Esempio n. 3
0
        public void Execution_Stack_Test_Sentinal_Value_For_Empty_Stack()
        {
            var SUT = new ExecutionStack();

            Assert.IsTrue(SUT.ExecutingGuid(0) == SUT.EmptyStackSentinel);
        }