public void VerifyProperty(ExecutionMirror mirror, string dsVariable, string propertyName, object expectedValue, int startBlock = 0) { Assert.IsTrue(null != mirror); Obj dsObj = mirror.GetFirstValue(dsVariable, startBlock); Dictionary <string, Obj> propBag = mirror.GetProperties(dsObj); string expression = string.Format("{0}.{1}", dsVariable, propertyName); Assert.IsTrue(null != propBag && propBag.TryGetValue(propertyName, out dsObj), string.Format("Property \"{0}\" not found.\n{1}", expression, mErrorMessage)); var indices = new List <int>(); VerifyInternal(expectedValue, dsObj, expression, indices); }
internal bool GetClassProperties(ProtoCore.Lang.Obj stackValue, out Dictionary <string, ProtoCore.Lang.Obj> properties) { properties = null; if ((null != internalWorker) && internalWorker.IsBusy) { return(false); // Sorry but we're kinda busy right now. } try { if (null != currentWatchedMirror) { properties = currentWatchedMirror.GetProperties(stackValue, true); } } catch (Exception exception) { HandleException(exception); return(false); } return(true); // Call's successful even when there's no mirror. }