public void TestClose() { pt1.Open(); Assert.AreEqual(true, pt1.IsOpen); pt1.Close(); Assert.AreEqual(false, pt1.IsOpen); }
public void TestOpenandClose() { ppT.Close(); Assert.IsFalse(ppT.IsOpen); ppT.Open(); Assert.IsTrue(ppT.IsOpen); }
public void PrivTrainIsOpenMethods() { defaultPrivateTrain.Close(); Assert.IsFalse(defaultPrivateTrain.IsOpen); defaultPrivateTrain.Open(); Assert.IsTrue(defaultPrivateTrain.IsOpen); }
private void openOrClose_Click(object sender, EventArgs e) { if (computerTrain.IsOpen) { computerTrain.Close(); } else { computerTrain.Open(); } }