Esempio n. 1
0
        public void OnDiscoveryMessageReceivedTest()
        {
            SecurityModule_Accessor target = null;

            try
            {
                bool eventRaised = false;
                target = new SecurityModule_Accessor();
                target.add_DiscoveryMessageReceived(delegate { eventRaised = true; });
                DiscoveryMessage message = new DiscoveryMessage();
                target.OnDiscoveryMessageReceived(message);
                Assert.IsTrue(eventRaised);
            }
            finally
            {
                if (target != null)
                {
                    target.Dispose();
                }
            }
        }