コード例 #1
0
 public void PlayBackBeginEnd00Test()
 {
     Assert.IsFalse(RecorderManager.IsPlaying);
     RecorderManager.BeginPlayBack("test");
     Assert.IsTrue(RecorderManager.IsPlaying);
     RecorderManager.EndPlayBack();
     Assert.IsFalse(RecorderManager.IsPlaying);
 }
コード例 #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);
 }
コード例 #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;
 }
コード例 #4
0
 public void PlayBackBeginEnd03Test()
 {
     RecorderManager.BeginPlayBack("test");
     RecorderManager.EndPlayBack();
     RecorderManager.EndPlayBack();
 }
コード例 #5
0
 public void PlayBackBeginEnd02Test()
 {
     RecorderManager.EndPlayBack();
 }