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

            value = _recording.GetVariable(name, null);
        }
예제 #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);
        }