Exemple #1
0
        partial void GetRecordedValue(string name, ref string value)
        {
            if (_recording == null)
            {
                return;
            }

            value = _recording.GetVariable(name, null);
        }
Exemple #2
0
        partial void GetRecordedValue(string name, ref string value)
        {
            if (_recording == null)
            {
                throw new InvalidOperationException("Recorded value should not be retrieved outside the test method invocation");
            }

            value = _recording.GetVariable(name, null);
        }