コード例 #1
0
        private void ExpectSerializationCallbacks(ISerializationEventReceiver receiver)
        {
            using (_mockRepository.Ordered())
            {
                StreamingContext context = new StreamingContext();
                receiver.OnSerializing(context);
                _mockRepository.LastCall_IgnoreArguments();

                receiver.OnSerialized(context);
                _mockRepository.LastCall_IgnoreArguments();
            }
        }