private Mock<IBotProcessContext> SetupContextMock() { var contextMock = new Mock<IBotProcessContext>(); _memoryMock = contextMock.ReturnMockMember(x => x.Memory); contextMock.Setup(x => x.TargetProcess).Returns(Process.GetCurrentProcess()); return contextMock; }