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();
        }
예제 #2
0
 public static TaskMessage CreateDynamicElement(RemoteTask task)
 {
     return(new TaskMessage(task, ServerMessage.CreateDynamicElement()));
 }
예제 #3
0
 public void CreateDynamicElement()
 {
     Do(() => Assert.Single(Messages, ServerMessage.CreateDynamicElement()));
 }