public void Test_LaserBot_returns_false() { bool result = false; _laserBot.Detected().Returns(result); Assert.That(_laserBot.Detected, Is.EqualTo(result)); }
public void Test_EmptySate_returnsTrue_when_topAndBot_sensor_isFalse() { _context.setState(_emptyState); //_stopWatch.StartTimer(); //string result = _stopWatch.StopTimer(); _laserBot.Detected().Returns(false); _laserTop.Detected().Returns(false); _magnet.Detected().Returns(false); _context.IsFull(_stopWatch, _context, _emptyState, _fullState, _notDoneState); Assert.That(_context.getState(), Is.EqualTo(_emptyState)); }