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(); }
public IconTestsNamer(string resourceName) { this.resourceName = resourceName; Approvals.SetCaller(); stackTraceParser = new StackTraceParser(); stackTraceParser.Parse(Approvals.CurrentCaller.StackTrace); System.IO.Directory.CreateDirectory(SourcePath); }
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")); }
public void TestVsReporter() { Approvals.SetCaller(); Assert.True(VisualStudioReporter.INSTANCE.IsWorkingInThisEnvironment("a.txt")); Approvals.Verify("Hello"); }