예제 #1
0
        public void Test_HandleRFIDChangedEvent_WhenAvailableAndChargeControlNotConnected_RFIDChangedEventRaised_MethodCallCorrect()
        {
            _chargeControl.IsConnected().Returns(false);
            _rfidReader.RFIDChangedEvent += Raise.EventWith(new RFIDChangedEventArgs {
                RFID = 10
            });

            _door.DidNotReceive().LockDoor();
            _usbCharger.DidNotReceive().StartCharge();
            _fileWriter.DidNotReceive().LogDoorLocked(10);
            _display.Received().WriteMessage("Phone not connected properly, try connecting again");
        }