当前位置: 首页>>代码示例>>C#>>正文


C# RemoteTask类代码示例

本文整理汇总了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;
        }
开发者ID:Booksbaum,项目名称:resharper-xunit,代码行数:7,代码来源:RemoteTaskWrapper.cs

示例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());
 }
开发者ID:EddieGarmon,项目名称:resharper-xunit,代码行数:7,代码来源:TaskMessageExtensions.cs

示例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();
 }
开发者ID:EddieGarmon,项目名称:resharper-xunit,代码行数:7,代码来源:TaskMessages.cs

示例4: TaskStarting

        public void TaskStarting(RemoteTask remoteTask)
        {
            Assert.NotNull(remoteTask);

            tasks.Push(remoteTask);
            TaskStartingCalls.Add(remoteTask);
        }
开发者ID:hazzik,项目名称:ReSharper.XUnitTestRunner,代码行数:7,代码来源:FakeRemoteTaskServer.cs

示例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);
 }
开发者ID:hazzik,项目名称:ReSharper.XUnitTestRunner,代码行数:7,代码来源:NewReSharperRunnerLoggerTests.cs

示例6: Equals

        public override bool Equals(RemoteTask other)
        {
            if (other == null) return false;

            return ReferenceEquals(this, other) ||
                Equals(other as LoadContextAssemblyTask);
        }
开发者ID:pawelpabich,项目名称:storevil,代码行数:7,代码来源:RunStoryTask.cs

示例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());
 }
开发者ID:EddieGarmon,项目名称:resharper-xunit,代码行数:7,代码来源:TaskMessageExtensions.cs

示例8: GetJob

        private IStorEvilJob GetJob(RemoteTask remoteTask, IScenario scenario)
        {
            InPlaceStoryRunner handler = BuildInPlaceRunner(remoteTask);
            IStoryProvider provider = new SingleScenarioStoryProvider(scenario);

            return new StorEvilJob(provider, handler);
        }
开发者ID:codereflection,项目名称:storevil,代码行数:7,代码来源:ScenarioExecutor.cs

示例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 );
        }
开发者ID:codereflection,项目名称:storevil,代码行数:7,代码来源:ScenarioExecutor.cs

示例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);
        }
开发者ID:staxmanade,项目名称:AgUnit,代码行数:7,代码来源:XUnitMethodTaskProvider.cs

示例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;
 }
开发者ID:EddieGarmon,项目名称:resharper-xunit,代码行数:7,代码来源:ReSharperRunnerLogger.cs

示例12: TaskMessage

        private TaskMessage(RemoteTask task, ServerAction serverAction, params object[] parameters)
        {
            Assert.NotNull(task);

            Task = task;
            ServerAction = serverAction;
            Message = ServerMessage.Format(serverAction, parameters);
        }
开发者ID:EddieGarmon,项目名称:resharper-xunit,代码行数:8,代码来源:TaskMessage.cs

示例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;
        }
开发者ID:TylerCarlson1,项目名称:ReSharperFixieRunner,代码行数:8,代码来源:TestProvider.cs

示例14: TaskStarting

        public bool TaskStarting(RemoteTask remoteTask)
        {
            Assert.NotNull(remoteTask);

            tasks.Push(remoteTask);
            TaskStartingCalls.Add(remoteTask);

            return true;
        }
开发者ID:Eskat0n,项目名称:ReSharper.XUnitTestRunner,代码行数:9,代码来源:FakeRemoteTaskServer.cs

示例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);
        }
开发者ID:bleedow,项目名称:resharper-xunit,代码行数:11,代码来源:RemoteTaskServer.cs


注:本文中的RemoteTask类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。