public void WillGetPartialRecordFromPartialRecord() { MockRepository mocks = new MockRepository(); IDemo demo = mocks.StrictMock<IDemo>(); IMockState mockState = new RecordPartialMockState((IMockedObject)demo, mocks).BackToRecord(); Assert.Equal(typeof(RecordPartialMockState), mockState.GetType()); }
/// <summary> /// Initializes a new instance of the <see cref="ReplayPartialMockState"/> class. /// Creates a new <see cref="ReplayDynamicMockState"/> instance. /// </summary> /// <param name="previousState"> /// The previous state for this method /// </param> public ReplayPartialMockState(RecordPartialMockState previousState) : base(previousState) { }