public void Should_call_task_started_on_known_dynamic_method_task() { testClass.MimicCachingOfDynamicMethodTasks = true; var method = testClass.AddMethod("testMethod", _ => { }, new Parameter[0]); var methodTask = method.Task; testRun.Run(); Messages.ForEqualTask(methodTask).Any(tm => tm.Message == ServerMessage.CreateDynamicElement()); Messages.AssertSameTask(methodTask).TaskStarting(); Messages.AssertSameTask(methodTask).TaskFinished(); }
public static TaskMessage CreateDynamicElement(RemoteTask task) { return(new TaskMessage(task, ServerMessage.CreateDynamicElement())); }
public void CreateDynamicElement() { Do(() => Assert.Single(Messages, ServerMessage.CreateDynamicElement())); }