Exemplo n.º 1
0
    public static int Main()
    {
        StackPop testObj = new StackPop();

        TestLibrary.TestFramework.BeginTestCase("for method: Stack.Pop()");
        if (testObj.RunTests())
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("PASS");
            return(100);
        }
        else
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("FAIL");
            return(0);
        }
    }
Exemplo n.º 2
0
    public static int Main()
    {
        StackPop testObj = new StackPop();

        TestLibrary.TestFramework.BeginTestCase("for method: Stack.Pop()");
        if (testObj.RunTests())
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("PASS");
            return 100;
        }
        else
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("FAIL");
            return 0;
        }
    }
Exemplo n.º 3
0
 private void Pop_FormClosed(object sender, FormClosedEventArgs e)
 {
     pop = null;
 }
Exemplo n.º 4
0
 private void btn_pop_Click(object sender, EventArgs e)
 {
     pop             = new StackPop();
     pop.FormClosed += Pop_FormClosed;
     pop.Show();
 }