internal MethodExitEventArgs(VirtualMachine virtualMachine, SuspendPolicy suspendPolicy, EventRequest request, ThreadReference thread, Location location, IValue returnValue) : base(virtualMachine, suspendPolicy, request, thread, location) { Contract.Requires<ArgumentNullException>(returnValue != null, "returnValue"); _returnValue = returnValue; }
private static void UpdateThreadReference(ThreadReference threadReference) { threadReference.BrandId = "Brand Id"; threadReference.BrandName = "Brand Name"; threadReference.OwnedLength = 5; threadReference.Colour = "Blue"; }
internal ExceptionEventArgs(VirtualMachine virtualMachine, SuspendPolicy suspendPolicy, EventRequest request, ThreadReference thread, Location location, IObjectReference exception, ILocation catchLocation) : base(virtualMachine, suspendPolicy, request, thread, location) { Contract.Requires<ArgumentNullException>(exception != null, "exception"); _exception = exception; _catchLocation = catchLocation; }
private void EditThreadReference(ThreadReference threadReference) { if (!RemoveExistingUpdates()) { return; } Navigate <EditThreadReferenceViewModel>(threadReference); }
internal FieldAccessEventArgs(VirtualMachine virtualMachine, SuspendPolicy suspendPolicy, EventRequest request, ThreadReference thread, Location location, IField field, IObjectReference instance) : base(virtualMachine, suspendPolicy, request, thread, location) { Contract.Requires<ArgumentNullException>(field != null, "field"); Contract.Requires(field.GetIsStatic() || instance != null); _field = field; _instance = instance; }
internal ClassPrepareEventArgs(VirtualMachine virtualMachine, SuspendPolicy suspendPolicy, EventRequest request, ThreadReference thread, string signature, ReferenceType type) : base(virtualMachine, suspendPolicy, request, thread) { Contract.Requires<ArgumentNullException>(signature != null, "signature"); Contract.Requires<ArgumentException>(!string.IsNullOrEmpty(signature)); _signature = signature; _type = type; }
protected override PatternThread GenerateThread(ThreadReference threadReference) { return(new PatternThread { Pattern = Model, ThreadReference = threadReference, ThreadReferenceId = threadReference.Id, }); }
protected override OrderThread GenerateThread(ThreadReference threadReference) { return(new OrderThread { Order = Model, ThreadReference = threadReference, ThreadReferenceId = threadReference.Id, }); }
public void AddThreadFilter(IThreadReference thread) { ThreadReference threadReference = thread as ThreadReference; if (threadReference == null || !threadReference.VirtualMachine.Equals(this.VirtualMachine)) { throw new VirtualMachineMismatchException(); } Modifiers.Add(Types.EventRequestModifier.ThreadFilter(threadReference.ThreadId)); }
public void TracksShowAllThreadsForUnownedThreads(bool showAllThreads) { var source = new ThreadReference[] { GetExampleThreadReference(0) }; var criteria = new InventorySearchCriteria { ShowAllThreads = showAllThreads, SearchString = "Id" }; source.ApplyCriteria(criteria).Should().HaveCount(showAllThreads ? 1 : 0); }
public IStepRequest CreateStepRequest(IThreadReference thread, StepSize size, StepDepth depth) { ThreadReference threadReference = thread as ThreadReference; if ((threadReference == null || !threadReference.VirtualMachine.Equals(this.VirtualMachine)) && thread != null) { throw new VirtualMachineMismatchException(); } var request = new StepRequest(VirtualMachine, threadReference, size, depth); _stepRequests.Add(request); return(request); }
public void ApplyWithInvalidTerm(string searchString) { var source = new ThreadReference[] { GetExampleThreadReference() }; var criteria = new InventorySearchCriteria { ShowAllThreads = true, SearchString = searchString }; var results = source.ApplyCriteria(criteria).ToArray(); Assert.False(results.Any()); }
public void ApplyToIdAndDescription(string searchString) { var source = new ThreadReference[] { GetExampleThreadReference() }; var criteria = new InventorySearchCriteria { ShowAllThreads = true, SearchString = searchString }; var results = source.ApplyCriteria(criteria).ToArray(); results.Should().NotBeEmpty(); }
public StepRequest(VirtualMachine virtualMachine, ThreadReference thread, StepSize size, StepDepth depth) : base(virtualMachine) { Contract.Requires(virtualMachine != null); _thread = thread; _size = size; _depth = depth; ThreadId threadId = default(ThreadId); if (thread != null) threadId = thread.ThreadId; Modifiers.Add(Types.EventRequestModifier.Step(threadId, (Types.StepSize)size, (Types.StepDepth)depth)); }
public StepRequest(VirtualMachine virtualMachine, ThreadReference thread, StepSize size, StepDepth depth) : base(virtualMachine) { Contract.Requires(virtualMachine != null); _thread = thread; _size = size; _depth = depth; ThreadId threadId = default(ThreadId); if (thread != null) { threadId = thread.ThreadId; } Modifiers.Add(Types.EventRequestModifier.Step(threadId, (Types.StepSize)size, (Types.StepDepth)depth)); }
internal ThreadEventArgs(VirtualMachine virtualMachine, SuspendPolicy suspendPolicy, EventRequest request, ThreadReference thread) : base(virtualMachine, suspendPolicy, request) { _thread = thread; }
internal ClassPrepareEventArgs(VirtualMachine virtualMachine, SuspendPolicy suspendPolicy, EventRequest request, ThreadReference thread, string signature, ReferenceType type) : base(virtualMachine, suspendPolicy, request, thread) { Contract.Requires <ArgumentNullException>(signature != null, "signature"); Contract.Requires <ArgumentException>(!string.IsNullOrEmpty(signature)); _signature = signature; _type = type; }
internal ThreadLocationEventArgs(VirtualMachine virtualMachine, SuspendPolicy suspendPolicy, EventRequest request, ThreadReference thread, Location location) : base(virtualMachine, suspendPolicy, request, thread) { _location = location; }
public override void Initialise(object param) { ThreadReference = (param as ThreadReference) ?? new ThreadReference(); }
internal MonitorWaitEventArgs(VirtualMachine virtualMachine, SuspendPolicy suspendPolicy, EventRequest request, ThreadReference thread, Location location, IObjectReference @object, TimeSpan timeout) : base(virtualMachine, suspendPolicy, request, thread, location, @object) { _timeout = timeout; }
private void OnEditThreadReference(ThreadReference threadReference) { var thread = _threadReferenceRepository.Get(threadReference.Id); EditThreadReference(thread); }
internal FieldModificationEventArgs(VirtualMachine virtualMachine, SuspendPolicy suspendPolicy, EventRequest request, ThreadReference thread, Location location, IField field, IObjectReference instance, IValue newValue) : base(virtualMachine, suspendPolicy, request, thread, location, field, instance) { _newValue = newValue; }
private void OnDeleteThreadReference(ThreadReference obj) { throw new NotImplementedException(); }
public ProjectThreadSummary(ThreadReference threadReference) { ThreadReference = threadReference ?? throw new ArgumentException("Thread reference must be populated"); }
internal ExceptionEventArgs(VirtualMachine virtualMachine, SuspendPolicy suspendPolicy, EventRequest request, ThreadReference thread, Location location, IObjectReference exception, ILocation catchLocation) : base(virtualMachine, suspendPolicy, request, thread, location) { Contract.Requires <ArgumentNullException>(exception != null, "exception"); _exception = exception; _catchLocation = catchLocation; }
internal MonitorEventArgs(VirtualMachine virtualMachine, SuspendPolicy suspendPolicy, EventRequest request, ThreadReference thread, Location location, IObjectReference @object) : base(virtualMachine, suspendPolicy, request, thread, location) { Contract.Requires <ArgumentNullException>(@object != null, "object"); _object = @object; }
internal FieldAccessEventArgs(VirtualMachine virtualMachine, SuspendPolicy suspendPolicy, EventRequest request, ThreadReference thread, Location location, IField field, IObjectReference instance) : base(virtualMachine, suspendPolicy, request, thread, location) { Contract.Requires <ArgumentNullException>(field != null, "field"); Contract.Requires(field.GetIsStatic() || instance != null); _field = field; _instance = instance; }
protected abstract TThread GenerateThread(ThreadReference threadReference);
internal MethodExitEventArgs(VirtualMachine virtualMachine, SuspendPolicy suspendPolicy, EventRequest request, ThreadReference thread, Location location, IValue returnValue) : base(virtualMachine, suspendPolicy, request, thread, location) { Contract.Requires <ArgumentNullException>(returnValue != null, "returnValue"); _returnValue = returnValue; }