示例#1
0
 public void SetCurrent_CurrentIsDisconnect_EventFired()
 {
     _uut.StartCharge();
     Assert.That(_receivedEventArgs, Is.Not.Null);
 }
        public void Started_WaitSomeTime_ReceivedSeveralValues()
        {
            int numValues = 0;

            _uut.CurrentValueEvent += (o, args) => numValues++;

            _uut.StartCharge();

            System.Threading.Thread.Sleep(1100);

            Assert.That(numValues, Is.GreaterThan(4));
        }