Exemplo n.º 1
0
 private void CommandLogReflectsScript(ExampleAction target)
 {
     Approvals.Verify(
         new ApprovalTextWriter(Scrubbers.ScrubDates(recordingConnection.GetCommandLog())),
         new CustomUnitTestFrameworkNamer(target.ToString().Replace(" ", string.Empty)),
         Approvals.GetReporter());
 }
Exemplo n.º 2
0
            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));
            }