Esempio n. 1
0
    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;
    }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public TestFailedException(Type declaringType, string testName, SandboxTestStatus status, Exception exception)
     : base(CreateMessage(declaringType, testName, status), exception)
 {
 }
Esempio n. 4
0
 private static string CreateMessage(Type declaringType, string testName, SandboxTestStatus status)
 {
     return(string.Format("Test '{0}.{1}' failed. Status: {2}.", declaringType, testName, status));
 }