protected override MspecBehaviorSpecificationRemoteTask ToRemoteTask(MspecBehaviorSpecificationTestElement element, ITestRunnerExecutionContext context) { var task = MspecBehaviorSpecificationRemoteTask.ToClient( element.NaturalId.TestId, element.IgnoreReason, context.IsRunExplicitly(element)); task.ContextTypeName = element.Specification.Context.TypeName.FullName; task.FieldName = element.FieldName; task.ParentId = $"{element.Specification.Context.TypeName.FullName}.{element.Specification.FieldName}"; return(task); }
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); }