public void NullAudioWriter() { var audioProvider = MoqFactory.GetAudioProviderMock().Object; using (new Recorder(null, audioProvider)) { } }
public void RecorderAudioDispose() { var audioWriterMock = MoqFactory.GetAudioFileWriterMock(); var audioProviderMock = MoqFactory.GetAudioProviderMock(); using (new Recorder(audioWriterMock.Object, audioProviderMock.Object)) { } audioWriterMock.Verify(M => M.Dispose(), Times.Once); audioProviderMock.Verify(M => M.Dispose(), Times.Once); }
public void RecorderVideoDispose() { var imgProviderMock = MoqFactory.GetImageProviderMock(); var videoWriterMock = MoqFactory.GetVideoFileWriterMock(); var audioProviderMock = MoqFactory.GetAudioProviderMock(); using (new Recorder(videoWriterMock.Object, imgProviderMock.Object, 10, audioProviderMock.Object)) { } imgProviderMock.Verify(M => M.Dispose(), Times.Once); videoWriterMock.Verify(M => M.Dispose(), Times.Once); audioProviderMock.Verify(M => M.Dispose(), Times.Once); }