本文整理汇总了C#中RemoteTask类的典型用法代码示例。如果您正苦于以下问题:C# RemoteTask类的具体用法?C# RemoteTask怎么用?C# RemoteTask使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RemoteTask类属于命名空间,在下文中一共展示了RemoteTask类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RemoteTaskWrapper
public RemoteTaskWrapper(RemoteTask remoteTask, IRemoteTaskServer server)
{
RemoteTask = remoteTask;
this.server = server;
result = TaskResult.Inconclusive;
}
示例2: OfTask
public static TaskMessages OfTask(this IEnumerable<TaskMessage> taskMessages, RemoteTask task)
{
var sameTasks = from tm in taskMessages
where Equals(tm.Task, task) && tm.Task.Id == task.Id
select tm;
return new TaskMessages(task, "same", sameTasks.ToList());
}
示例3: TaskMessages
public TaskMessages(RemoteTask task, string taskMatchStyle, IList<TaskMessage> taskMessages)
{
this.task = task;
this.taskMatchStyle = taskMatchStyle;
messages = taskMessages.Select(tm => tm.Message).ToList();
serverActions = taskMessages.Select(tm => tm.ServerAction).ToList();
}
示例4: TaskStarting
public void TaskStarting(RemoteTask remoteTask)
{
Assert.NotNull(remoteTask);
tasks.Push(remoteTask);
TaskStartingCalls.Add(remoteTask);
}
示例5: AssertTaskFinishedCalled
private static void AssertTaskFinishedCalled(FakeRemoteTaskServer.TaskFinishedParameters taskFinishedCall,
RemoteTask remoteTask, string message, TaskResult result)
{
Assert.Equal(remoteTask, taskFinishedCall.RemoteTask);
Assert.Equal(message, taskFinishedCall.Message);
Assert.Equal(result, taskFinishedCall.Result);
}
示例6: Equals
public override bool Equals(RemoteTask other)
{
if (other == null) return false;
return ReferenceEquals(this, other) ||
Equals(other as LoadContextAssemblyTask);
}
示例7: OfEquivalentTask
public static TaskMessages OfEquivalentTask(this IEnumerable<TaskMessage> taskMessages, RemoteTask task)
{
var equivalentTasks = from tm in taskMessages
where Equals(tm.Task, task)
select tm;
return new TaskMessages(task, "equal", equivalentTasks.ToList());
}
示例8: GetJob
private IStorEvilJob GetJob(RemoteTask remoteTask, IScenario scenario)
{
InPlaceStoryRunner handler = BuildInPlaceRunner(remoteTask);
IStoryProvider provider = new SingleScenarioStoryProvider(scenario);
return new StorEvilJob(provider, handler);
}
示例9: BuildInPlaceRunner
private InPlaceStoryRunner BuildInPlaceRunner(RemoteTask remoteTask)
{
_listener = new ResharperResultListener(_server, remoteTask);
IScenarioPreprocessor preprocessor = new ScenarioPreprocessor();
return new InPlaceStoryRunner(_listener, preprocessor, new ScenarioInterpreter(new InterpreterForTypeFactory(new ExtensionMethodHandler())), new IncludeAllFilter(), _factory );
}
示例10: GetFullMethodName
public string GetFullMethodName(RemoteTask task)
{
var typeName = task.GetProperty<string>("TypeName");
var shortName = task.GetProperty<string>("ShortName");
return string.Format("{0}.{1}", typeName, shortName);
}
示例11: TaskState
public TaskState(RemoteTask task, TaskState parentState, string message = "Internal Error (xunit runner): No status reported", TaskResult result = TaskResult.Inconclusive)
{
Task = task;
Message = message;
Result = result;
ParentState = parentState;
}
示例12: TaskMessage
private TaskMessage(RemoteTask task, ServerAction serverAction, params object[] parameters)
{
Assert.NotNull(task);
Task = task;
ServerAction = serverAction;
Message = ServerMessage.Format(serverAction, parameters);
}
示例13: GetDynamicElement
public IUnitTestElement GetDynamicElement(RemoteTask remoteTask, Dictionary<RemoteTask, IUnitTestElement> tasks)
{
var caseTask = remoteTask as TestCaseTask;
if (caseTask != null)
return GetDynamicCaseElement(tasks, caseTask);
return null;
}
示例14: TaskStarting
public bool TaskStarting(RemoteTask remoteTask)
{
Assert.NotNull(remoteTask);
tasks.Push(remoteTask);
TaskStartingCalls.Add(remoteTask);
return true;
}
示例15: TaskFinished
public void TaskFinished(RemoteTask remoteTask, string message, TaskResult result, TimeSpan duration)
{
Debug.Assert(result != TaskResult.Inconclusive);
clientController.TaskFinished(remoteTask);
if (result == TaskResult.Skipped)
server.TaskExplain(remoteTask, message);
if (duration >= TimeSpan.Zero)
server.TaskDuration(remoteTask, duration);
server.TaskFinished(remoteTask, message, result);
}