private void AssertNoVerificationErrors() { if (testData.VerificationErrors.Count == 0) { return; } var i = 1; TestLog.BeginMarker(Marker.AssertionFailure); foreach (var error in testData.VerificationErrors) { TestLog.Failures.BeginSection("ElementVerification Error " + i); TestLog.Failures.WriteLine(error.errorText); if (Config.Settings.reportSettings.screenshotOnError && (error.screenshot != null)) { TestLog.Failures.EmbedImage(null, error.screenshot); } TestLog.Failures.End(); i++; } TestLog.End(); Assert.TerminateSilently(TestOutcome.Failed); }