コード例 #1
0
        public void DropTest()
        {
            CStack cs = new CStack();

            cs.entry = "1";
            cs.Enter();
            cs.entry = "2";
            cs.Enter();
            cs.entry = "3";
            cs.Enter();
            cs.entry = "4";
            cs.Enter();
            cs.Drop();
            Assert.AreEqual(cs.X, 3);
            Assert.AreEqual(cs.Y, 2);
            Assert.AreEqual(cs.Z, 1);
            Assert.AreEqual(cs.T, 0);
        }
コード例 #2
0
 private void OpBtn_drop(object sender, RoutedEventArgs e)
 {
     cs.Drop();
     UpdateNumberField();
 }