Beispiel #1
0
 public void CameraConnection_CameraOff_StopVideo()
 {
     _sut.CameraOn();
     _fakeVideoSource.IsRunning.Returns(true);
     _sut.CameraOff();
     _fakeOutput.Received(1).OutputLine(Arg.Is <string>(s => s.ToLower().Contains("camera off")));
     _fakeVideoSource.Received(1).SignalToStop();
     _fakeVideoSource.Received(1).WaitForStop();
 }