Esempio n. 1
0
        public void ProbeTest()
        {
            IProbeTaskFactory factory = _container.GetExportedValue <IProbeTaskFactory>();

            Task target = factory.Create(_probes[0]);

            Assert.IsNotNull(target);

            (target as IAsyncResult).AsyncWaitHandle.WaitOne();
            Assert.IsNotNull(target);
            Assert.IsInstanceOfType(target, typeof(Task <FindRequestContext>));
        }