public void TSTestNum() { int expected = 4; int num = 4; Ticker tick = new Ticker(4, 4); TickerSet tS = new TickerSet(num, "Set Name"); tS.addFull(tick); tS.getTicker(1); int result = tS.getRetNum(); Assert.AreEqual(expected, result); }
private void display() { if (cTS != null)//Check if cTS exists { for (int i = 0; i < size; i++)//Loops through each Ticker slot { if (cTS.getTicker(i))//Check that ticker exists changeNum(i, cTS.getRetNum().ToString()); } } else { for (int i = 0; i < size; i++)//Loops through each Ticker slot { changeNum(i, ""); } } }