示例#1
0
 public void TestAsyncExceptionFromVoid()
 {
     using (ApprovalTests.Namers.ApprovalResults.UniqueForOs()) {
         AsyncApprovals.VerifyException(ThrowBabyThrow(),
                                        ScrubberUtils.RemoveLinesContaining("System.Linq.Parallel.QueryTask"));
     }
 }
 public void TestAsyncExceptionFromVoid()
 {
     using (Namers.ApprovalResults.UniqueForOs())
     {
         AsyncApprovals.VerifyException(ThrowBabyThrow(),
                                        ScrubberUtils.Combine(
                                            ScrubberUtils.RemoveLinesContaining("System.Linq.Parallel.QueryTask"),
                                            ScrubberUtils.RemoveLinesContaining("System.Threading.Tasks.Task.InnerInvoke"))
                                        );
     }
 }
示例#3
0
 public void TestNoExceptions()
 {
     AsyncApprovals.VerifyException(async() => 1);
 }
示例#4
0
 public void TestAsyncExceptionFromVoid()
 {
     AsyncApprovals.VerifyException(ThrowBabyThrow(),
                                    ScrubberUtils.RemoveLinesContaining("System.Linq.Parallel.QueryTask"));
 }