示例#1
0
 public UnitTestFrameworkNamer()
 {
     Approvals.SetCaller();
     stackTraceParser = new StackTraceParser();
     stackTraceParser.Parse(Approvals.CurrentCaller.StackTrace);
     HandleSubdirectory();
 }
 public UnitTestFrameworkNamer()
 {
     Approvals.SetCaller();
     stackTraceParser = new StackTraceParser();
     stackTraceParser.Parse(Approvals.CurrentCaller.StackTrace);
     Subdirectory = GetSubdirectoryFromAttribute();
 }
示例#3
0
 public IconTestsNamer(string resourceName)
 {
     this.resourceName = resourceName;
     Approvals.SetCaller();
     stackTraceParser = new StackTraceParser();
     stackTraceParser.Parse(Approvals.CurrentCaller.StackTrace);
     System.IO.Directory.CreateDirectory(SourcePath);
 }
示例#4
0
        public void TestMightyMoose()
        {
            Approvals.SetCaller();
            var m = new MightyMooseAutoTestReporter();
            var b = m.IsWorkingInThisEnvironment("a.txt");
            var f = PathUtilities.GetAdjacentFile("mightymooseresult.txt");

            File.WriteAllText(f, "{0}, MightyMoose was running = {1}".FormatWith(DateTime.Now, b));
        }
 public void TestNunitIsWorking()
 {
     Approvals.SetCaller();
     Assert.IsTrue(NUnitReporter.INSTANCE.IsWorkingInThisEnvironment("default.txt"));
 }
示例#6
0
 public void TestVsReporter()
 {
     Approvals.SetCaller();
     Assert.True(VisualStudioReporter.INSTANCE.IsWorkingInThisEnvironment("a.txt"));
     Approvals.Verify("Hello");
 }