public void TaskNotInDepotIsReportedToSink() { var sink = Substitute.For <ITestExecutionSink>(); var depot = new RemoteTaskDepot(new RemoteTask[] { RemoteTaskFixtures.Context }); var context = new RunContext(depot, sink); Assert.That(context.GetTask(ElementFixtures.Specification1), Is.Not.Null); sink.Received().DynamicTestDiscovered(Arg.Any <RemoteTask>()); }