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); } }
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; } }
private void Pop_FormClosed(object sender, FormClosedEventArgs e) { pop = null; }
private void btn_pop_Click(object sender, EventArgs e) { pop = new StackPop(); pop.FormClosed += Pop_FormClosed; pop.Show(); }