public TestRunner (ITestDisplay testDisplay)
    {
      if (testDisplay == null)
        throw new ArgumentNullException ("testDisplay");

      _testDisplay = testDisplay;
    }
        public void Setup()
        {
            _usbCharger  = Substitute.For <IUsbCharger>();
            _testDisplay = Substitute.For <ITestDisplay>();
            _display     = Substitute.For <IDisplay>();

            _uut = new ChargeControl(_usbCharger, _display);
        }
        public TestRunner(ITestDisplay testDisplay)
        {
            if (testDisplay == null)
            {
                throw new ArgumentNullException("testDisplay");
            }

            _testDisplay = testDisplay;
        }
示例#4
0
 public void Setup()
 {
     _testDisplay = Substitute.For <ITestDisplay>();
     _uut         = new Display(_testDisplay);
 }
示例#5
0
 public Display(ITestDisplay testDisplay)
 {
     _testDisplay = testDisplay;
 }