public TypeAndMethodNamerTest() { RecordingServices.RecordingSaver = new DoNotSaveRecordings(); recorder = (DefaultRecorder)RecordingServices.Recorder; RecordingServices.RecordingNamer = new TypeAndMethodNamer(); simpleMath = new SimpleMath(); }
public CallStackNamingOfRecordingTest() { recorder = (DefaultRecorder)RecordingServices.Recorder; RecordingServices.RecordingNamer = new CallStackRecordingNamer(); simpleMath = new SimpleMath(); simpleMathFacade = new SimpleMathFacade(); }
static RecordingServices() { Recorder = new DefaultRecorder(); RecordingNamer = new CallStackRecordingNamer(); RecordingSaver = new SaveRecordingToDisk(new FileAdapter(), new TestGenerator()); DependencyPlayback = new DependencyPlayback(); }
public RecordingAttributeTest() { saverMock = new Mock<ISaveRecordings>(); saverMock.Setup(saver => saver.SaveMethodRecording(It.IsAny<MethodRecording>())).Verifiable(); RecordingServices.RecordingSaver = saverMock.Object; RecordingServices.RecordingNamer = new TypeAndMethodNamer(); recorder = (DefaultRecorder)RecordingServices.Recorder; recorder.ClearRecordings(); math = new SimpleMath(); math.Add(5, 5); math.Add(10, 10); SimpleMath.AddStatic(15, 15); }
public RecordingOnTypeLevelTest() { RecordingServices.RecordingSaver = new DoNotSaveRecordings(); recorder = (DefaultRecorder)RecordingServices.Recorder; }