private TestResult (MethodInfo methodInfo, SandboxTestStatus status, Exception exception) { if (methodInfo == null) throw new ArgumentNullException ("methodInfo"); // avoid ArgumentUtility, it doesn't support partial trust ATM MethodInfo = methodInfo; Status = status; Exception = exception; }
private TestResult(MethodInfo methodInfo, SandboxTestStatus status, Exception exception) { if (methodInfo == null) { throw new ArgumentNullException("methodInfo"); // avoid ArgumentUtility, it doesn't support partial trust ATM } MethodInfo = methodInfo; Status = status; Exception = exception; }
public TestFailedException(Type declaringType, string testName, SandboxTestStatus status, Exception exception) : base(CreateMessage(declaringType, testName, status), exception) { }
private static string CreateMessage(Type declaringType, string testName, SandboxTestStatus status) { return(string.Format("Test '{0}.{1}' failed. Status: {2}.", declaringType, testName, status)); }