public void PlayBackBeginEnd00Test()
 {
     Assert.IsFalse(RecorderManager.IsPlaying);
     RecorderManager.BeginPlayBack("test");
     Assert.IsTrue(RecorderManager.IsPlaying);
     RecorderManager.EndPlayBack();
     Assert.IsFalse(RecorderManager.IsPlaying);
 }
 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);
 }
Exemple #3
0
 public virtual void TestSetup()
 {
     if (RecorderManager.IsPlaying)
     {
         RecorderManager.EndPlayBack();
     }
     if (RecorderManager.IsRecording)
     {
         RecorderManager.EndRecording();
     }
     this.currentRecorder = (Support.TestingRecorder)(RecorderManager.Recorder = new Support.TestingRecorder());
     global::Arebis.Testing.Mocking.Remoting.RemotingMockService.ResetGlobal();
     Sample.CurrencyServiceFactory.NextInstance = null;
 }
 public void PlayBackBeginEnd03Test()
 {
     RecorderManager.BeginPlayBack("test");
     RecorderManager.EndPlayBack();
     RecorderManager.EndPlayBack();
 }
 public void PlayBackBeginEnd02Test()
 {
     RecorderManager.EndPlayBack();
 }