public void On_RfidDetected_event_fired() { //arrange //act _uut.OnRfidDetected(1); //assert Assert.That(_recievedEventArgs.ID, Is.EqualTo(1)); }
public void Setup() { _recievedEventArgs = null; _uut = new RfidReader(); _uut.OnRfidDetected(1); _uut.RfidDetected += (o, args) => { _recievedEventArgs = args; }; }