public void TestApprovalNamerFailureMessage()
		{
			var parser = new StackTraceParser();
			var exception = Assert.Throws<Exception>(() => parser.Parse(new StackTrace(6)));

			Approvals.Verify(exception.Message);
		}
		public UnitTestFrameworkNamer()
		{
			Approvals.SetCaller();
			stackTraceParser = new StackTraceParser();
			stackTraceParser.Parse(Approvals.CurrentCaller.StackTrace);
			HandleSubdirectory();
		}
 public UnitTestFrameworkNamer()
 {
     stackTraceParser = new StackTraceParser();
     stackTraceParser.Parse(new StackTrace(true));
 }
示例#4
0
 public ConfigNamer()
 {
     this.stackTraceParser = new StackTraceParser();
     this.stackTraceParser.Parse(new StackTrace(true));
 }