// ... code omitted TestedClass_Accessor accessor = new TestedClass_Accessor(new PrivateObject(testObject)); DateTime testValue = DateTime.Now; using (RecordExpectations recorder = RecorderManager.StartRecording()) { accessor.PrivateMethod(ref testValue); recorder.CheckArguments(); recorder.Return(false); } // ... code omitted