ADLTest.CloudeoServiceListenerTest.testEchoNotification C# (CSharp) Méthode

testEchoNotification() private méthode

private testEchoNotification ( ) : void
Résultat void
        public void testEchoNotification()
        {
            CountdownLatch latch = new CountdownLatch();
            MockEventListener listener = new MockEventListener(latch);
            _service.addServiceListener(createVoidResponder(), listener);
            awaitVoidResult("addServiceListener");
            _service.sendEchoNotification(createVoidResponder(), "whatever");
            awaitVoidResult();
            Assert.IsTrue(latch.Wait(), "Got timeout when waiting for the event");
            Assert.IsNotNull(listener.receivedEvent);
            Assert.AreEqual("whatever", listener.receivedEvent.echoValue);
        }
CloudeoServiceListenerTest