protected override MspecContextRemoteTask ToRemoteTask(MspecContextTestElement element, ITestRunnerExecutionContext context) { var task = MspecContextRemoteTask.ToClient( element.NaturalId.TestId, element.IgnoreReason, context.RunAllChildren(element), context.IsRunExplicitly(element)); task.Subject = element.Subject; task.Tags = element.OwnCategories?.Select(x => x.Name).ToArray() ?? Array.Empty <string>(); return(task); }
protected override MspecSpecificationRemoteTask ToRemoteTask(MspecSpecificationTestElement element, ITestRunnerExecutionContext context) { var task = MspecSpecificationRemoteTask.ToClient( element.NaturalId.TestId, element.IgnoreReason, context.RunAllChildren(element), context.IsRunExplicitly(element)); task.ContextTypeName = element.Context.TypeName.FullName; task.FieldName = element.FieldName; task.BehaviorType = element.BehaviorType; return(task); }