Esempio n. 1
0
        public void TestChannelEventList()
        {
            using (IpcEventChannel channel = new IpcEventChannel(_registrar, _channel))
            {
                Assert.AreEqual("Test", channel["Test"].LocalName);
                Assert.AreEqual("TEST", channel["TEST"].LocalName);
                Assert.AreEqual("test", channel["test"].LocalName);

                int count = 0;
                foreach (IpcEvent e in channel.GetEvents())
                {
                    Assert.AreEqual("test", e.LocalName.ToLower());
                    count++;
                }
                Assert.AreEqual(3, count);
            }
        }