Esempio n. 1
0
 public void PlayBackBeginEnd00Test()
 {
     Assert.IsFalse(RecorderManager.IsPlaying);
     RecorderManager.BeginPlayBack("test");
     Assert.IsTrue(RecorderManager.IsPlaying);
     RecorderManager.EndPlayBack();
     Assert.IsFalse(RecorderManager.IsPlaying);
 }
Esempio 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);
 }
Esempio n. 3
0
 public void PlayBackBeginEnd03Test()
 {
     RecorderManager.BeginPlayBack("test");
     RecorderManager.EndPlayBack();
     RecorderManager.EndPlayBack();
 }
Esempio n. 4
0
 public void RecorderSwitch01Test()
 {
     RecorderManager.BeginPlayBack("test");
     RecorderManager.Recorder = null;
 }