private void CommandLogReflectsScript(ExampleAction target) { Approvals.Verify( new ApprovalTextWriter(Scrubbers.ScrubDates(recordingConnection.GetCommandLog())), new CustomUnitTestFrameworkNamer(target.ToString().Replace(" ", string.Empty)), Approvals.GetReporter()); }
public string GetName(TestMetadata metadata) { var targetName = target.ToString().Replace(" ", ""); var dir = Path.GetDirectoryName(metadata.FilePath); var filename = $"{metadata.TestFixture.GetType().Name}.{testName}.{targetName}"; return(Path.Combine(dir, "ApprovalFiles", filename)); }