RemoteValue CreateMockVariable()
        {
            RemoteValue mockVariable = Substitute.For <RemoteValue>();

            mockVariable.TypeIsPointerType().Returns(false);
            mockVariable.GetValueForExpressionPath(Arg.Any <string>()).Returns((RemoteValue)null);
            return(mockVariable);
        }
예제 #2
0
        public IVariableInformation GetValueForExpressionPath(VsExpression vsExpression)
        {
            RemoteValue expressionValue =
                _remoteValue.GetValueForExpressionPath(vsExpression.Value);

            if (expressionValue == null)
            {
                return(null);
            }

            return(_varInfoBuilder.Create(expressionValue,
                                          formatSpecifier: vsExpression.FormatSpecifier));
        }
예제 #3
0
 public RemoteValue GetValueForExpressionPath(string expressionPath) =>
 remoteProxy.GetValueForExpressionPath(expressionPath);
예제 #4
0
 public virtual RemoteValue GetValueForExpressionPath(string expressionPath)
 {
     return(value.GetValueForExpressionPath(expressionPath));
 }