public void TSTestSize() { int expected = 4; int num = 4; Ticker tick = new Ticker(4, 4); TickerSet tS = new TickerSet(num, "Set Name"); tS.addFull(tick); int result = tS.size(); Assert.AreEqual(expected, result); }
public void TSTestGetTicker() { bool expected = true; int num = 4; Ticker tick = new Ticker(4, 4); TickerSet tS = new TickerSet(num, "Set Name"); tS.addFull(tick); bool result = tS.getTicker(1); Assert.AreEqual(expected, result); }
public void TSTestAddFullTicker() { 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); if (tS.isFull()) { result = true; } Assert.AreEqual(expected, result); }