Esempio n. 1
0
 public void TestOpenandClose()
 {
     ppT.Close();
     Assert.IsFalse(ppT.IsOpen);
     ppT.Open();
     Assert.IsTrue(ppT.IsOpen);
 }
Esempio n. 2
0
 public void PrivTrainIsOpenMethods()
 {
     defaultPrivateTrain.Close();
     Assert.IsFalse(defaultPrivateTrain.IsOpen);
     defaultPrivateTrain.Open();
     Assert.IsTrue(defaultPrivateTrain.IsOpen);
 }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
 private void openOrClose_Click(object sender, EventArgs e)
 {
     if (computerTrain.IsOpen)
     {
         computerTrain.Close();
     }
     else
     {
         computerTrain.Open();
     }
 }
Esempio n. 5
0
 public void TestOpen()
 {
     pt1.Open();
     Assert.AreEqual(true, pt1.IsOpen);
 }