Created
February 14, 2013 22:01
-
-
Save jamesrcounts/4956790 to your computer and use it in GitHub Desktop.
A MightyMoose reporter suitable for front loading.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Linq; | |
| using ApprovalTests.Core; | |
| namespace ApprovalTests.Reporters | |
| { | |
| public class AutoTestReporter : IEnvironmentAwareReporter | |
| { | |
| public static readonly AutoTestReporter INSTANCE = new AutoTestReporter(); | |
| public void Report(string approved, string received) | |
| { | |
| } | |
| public bool IsWorkingInThisEnvironment(string forFile) | |
| { | |
| return Approvals.CurrentCaller.NonLambdaCallers | |
| .Any(c => c.Class.Assembly.GetName().Name.StartsWith("AutoTest.TestRunners")); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment