예제 #1
0
 public void On_RfidDetected_event_fired()
 {
     //arrange
     //act
     _uut.OnRfidDetected(1);
     //assert
     Assert.That(_recievedEventArgs.ID, Is.EqualTo(1));
 }
예제 #2
0
        public void Setup()
        {
            _recievedEventArgs = null;
            _uut = new RfidReader();
            _uut.OnRfidDetected(1);

            _uut.RfidDetected +=
                (o, args) => { _recievedEventArgs = args; };
        }