public void OnSpecificationStart(SpecificationInfo specification) { if (listenFor != null && !listenFor.Equals(specification.ToVisualStudioTestIdentifier(currentContext))) { return; } runListener.OnSpecificationStart(specification); }
private TestCase ConvertSpecificationToTestCase(SpecificationInfo specification, Settings settings) { VisualStudioTestIdentifier vsTestId = specification.ToVisualStudioTestIdentifier(currentContext); return(new TestCase(vsTestId.FullyQualifiedName, this.executorUri, this.assemblyPath) { DisplayName = settings.DisableFullTestNameInOutput ? specification.Name : $"{this.currentContext?.TypeName}.{specification.FieldName}", }); }