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); }
public void TestIsPlayable() { bool flip = false; PrivateTrain myTrain = new PrivateTrain(myHand, 3); Assert.True(myTrain.IsPlayable(d31, out flip, myHand)); Assert.False(myTrain.IsPlayable(d55, out flip, myHand)); Assert.False(myTrain.IsPlayable(d31, out flip, yourHand)); myTrain.Open(); Assert.True(myTrain.IsPlayable(d31, out flip, yourHand)); }
private void openOrClose_Click(object sender, EventArgs e) { if (computerTrain.IsOpen) { computerTrain.Close(); } else { computerTrain.Open(); } }
public void TestOpen() { pt1.Open(); Assert.AreEqual(true, pt1.IsOpen); }