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); }
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(); }
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(); }
public void Execution_Stack_Test_Clear_Stack() { var SUT = new ExecutionStack(); SUT.ProcessEntry(1, Guid.NewGuid()); SUT.ClearStack(); Assert.IsTrue(SUT.IsStackEmpty(1)); }
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); }
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(); }