public void RecordingBeginEnd00Test() { RecorderManager.BeginRecording("test"); Assert.IsTrue(RecorderManager.IsRecording); RecorderManager.EndRecording(); Assert.IsFalse(RecorderManager.IsRecording); }
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 RecordingTest() { Support.RecorderListener listener = new Support.RecorderListener(); RecorderManager.BeginRecording("test"); using (new RecorderManager.Lock()) { RecorderManager.RecordCall(null); } using (new RecorderManager.Lock()) { RecorderManager.RecordCall(null); } RecorderManager.EndRecording(); Assert.AreEqual(1, listener.BeginRecordingCounter); Assert.AreEqual(1, listener.EndRecordingCounter); Assert.AreEqual(2, CurrentRecorder.Count); }
public void RecordingBeginEnd02Test() { RecorderManager.EndRecording(); }
public void RecordingNeedsLockTest() { RecorderManager.BeginRecording("test"); RecorderManager.RecordCall(null); RecorderManager.EndRecording(); }
public void RecordingBeginEnd03Test() { RecorderManager.BeginRecording("test"); RecorderManager.EndRecording(); RecorderManager.EndRecording(); }