public void ForErrorIcon_PlaysCorrectSound()
        {
            var interaction = new MessageInteraction("message", "title", MessageOptions.OK, MessageIcon.Error);

            _viewModel.SetInteraction(interaction);

            _soundPlayer.Received().Play(SystemSounds.Hand);
        }
Example #2
0
        public void CameraViewModel_BarcodeFound_CalledPlay()
        {
            _camera.BarcodeFoundEvent += Raise.EventWith(new BarcodeFoundEventArgs()
            {
                Barcode = "123456"
            });

            _soundPlayer.Received(1).Play();
        }