public void ExecuteShouldCallValidate() { TestExecutionRequest to = new TestExecutionRequest("Echo", "Send", "json"); Expect.IsFalse(to.Called); to.Execute(); Expect.IsTrue(to.Called); }
public void ExecuteShouldCallValidate() { TestExecutionRequest to = new TestExecutionRequest(null, "TestMethod", "json"); Expect.IsFalse(to.Called); to.Execute(); Expect.IsTrue(to.Called); }
internal TestRun(TestExecutionRequest request, IFixtureContainerSource fetchContainer, ITestObserver listener, FixtureLibrary library, SystemLifecycle lifecycle) { _request = request; _fetchContainer = fetchContainer; _listener = listener; _library = library; _lifecycle = lifecycle; _result = new TestResult(); }
public virtual TestResult RunTest(TestExecutionRequest request) { try { _currentRun = new TestRun(request, _source, _listener, _library, _lifecycle); // Setting the LastResult on the test here is just a convenience // for testing TestResult result = _currentRun.Execute(); return(result); } finally { _currentRun = null; } }
/// <summary> /// Requests a test to be executed on the client. /// </summary> /// <param name="request">The request data.</param> public void Execute(TestExecutionRequest request) { QueuedTests.Enqueue(request); }