コード例 #1
0
        partial void SetRecordedValue(string name, string value)
        {
            if (!_mode.HasValue)
            {
                return;
            }

            if (_recording == null)
            {
                throw new InvalidOperationException("Recorded value should not be retrieved outside the test method invocation");
            }

            _recording?.SetVariable(name, value);
        }
コード例 #2
0
 partial void SetRecordedValue(string name, string value)
 {
     _recording?.SetVariable(name, value);
 }