partial void Run()
 {
     if (behave)
     {
         Foo.HandleFooAsync().Wait();
     }
     else
     {
         throw new ArgumentNullException();
     }
 }
Exemplo n.º 2
0
 partial void Run()
 {
     if (behave)
     {
         Foo <string> .HandleFooAsync(null).Wait();
     }
     else
     {
         Foo <string> .HandleFooAsync("should fail").GetAwaiter().GetResult();
     }
 }
 partial void Run()
 {
     Foo.HandleFooAsync(behave).Wait();
 }