Esempio n. 1
0
 public void NoAwait()
 {
     var r = new ClassRootClient();
     var service = new FakeService(0);
     service.CallAsync(() => r.Simple());
     Thread.Sleep(50);
     Assert.AreEqual(0, service.CallCount);
 }
Esempio n. 2
0
        public void NoAwait()
        {
            var r       = new ClassRootClient();
            var service = new FakeService(0);

            service.CallAsync(() => r.Simple());
            Thread.Sleep(50);
            Assert.AreEqual(0, service.CallCount);
        }
Esempio n. 3
0
 public async Task MultipleAwaits()
 {
     var r = new ClassRootClient();
     var service = new FakeService(2);
     var p = service.CallAsync(() => r.Simple());
     await p;
     await p;
     Assert.AreEqual(2, service.CallCount);
 }
Esempio n. 4
0
        public async Task MultipleAwaits()
        {
            var   r       = new ClassRootClient();
            var   service = new FakeService(2);
            var   p       = service.CallAsync(() => r.Simple());
            await p;
            await p;

            Assert.AreEqual(2, service.CallCount);
        }
Esempio n. 5
0
 public async Task SimpleOnClass()
 {
     ClassRootClient r = new ClassRootClient();
     var service = new FakeService();
     await service.CallAsync(() => r.Simple());
 }
Esempio n. 6
0
 public async Task SimpleOnServiceInterface()
 {
     var r = new ClassRootClient();
     IRpcServiceAsync service = new FakeService();
     await service.CallAsync(() => r.Simple());
 }
Esempio n. 7
0
 public async Task SimpleOnClass()
 {
     ClassRootClient r       = new ClassRootClient();
     var             service = new FakeService();
     await service.CallAsync(() => r.Simple());
 }
Esempio n. 8
0
 public async Task SimpleOnServiceInterface()
 {
     var r = new ClassRootClient();
     IRpcServiceAsync service = new FakeService();
     await service.CallAsync(() => r.Simple());
 }