Exemplo n.º 1
0
 public void PlayBackBeginEnd00Test()
 {
     Assert.IsFalse(RecorderManager.IsPlaying);
     RecorderManager.BeginPlayBack("test");
     Assert.IsTrue(RecorderManager.IsPlaying);
     RecorderManager.EndPlayBack();
     Assert.IsFalse(RecorderManager.IsPlaying);
 }
Exemplo n.º 2
0
 public void PlaybackTest()
 {
     Support.RecorderListener listener = new Support.RecorderListener();
     RecorderManager.BeginPlayBack("test");
     using (new RecorderManager.Lock())
     {
     }
     RecorderManager.EndPlayBack();
     Assert.AreEqual(1, listener.BeginPlaybackCounter);
     Assert.AreEqual(1, listener.EndPlaybackCounter);
 }
Exemplo n.º 3
0
 public void PlayBackBeginEnd03Test()
 {
     RecorderManager.BeginPlayBack("test");
     RecorderManager.EndPlayBack();
     RecorderManager.EndPlayBack();
 }
Exemplo n.º 4
0
 public void RecorderSwitch01Test()
 {
     RecorderManager.BeginPlayBack("test");
     RecorderManager.Recorder = null;
 }