Ejemplo n.º 1
0
        private void Reset(object sender, RoutedEventArgs e)
        {
            if (cTS != null)
            {
                for (int i = 0; i < size; i++)//Loop through each 
                {
                    changeNum(i, "");//Reset each number
                }

                cTS.reset();//Reset cTS
                tSA[current] = cTS;//Save over the old Ticker set
            }
            errorMessage("");
        }
Ejemplo n.º 2
0
        public void TSTestReset()
        {
            bool expected = true;
            bool result   = false;
            int  num      = 3;


            Ticker    tick = new Ticker(4, 10);
            TickerSet tS   = new TickerSet(num, "Set Name");

            tS.addFull(tick);

            tS.reset();

            if (tS.isEmpty())
            {
                result = true;
            }

            Assert.AreEqual(expected, result);
        }