示例#1
0
 private void securityModule_UnitInfoMessageReceived(object sender, UnitInfoMessageReceivedEventArgs e)
 {
     if (_verbose)
     {
         WriteLine("UnitInfo message: " + e.Message);
     }  // if(_verbose)
 }
        public void UnitInfoMessageReceivedEventArgsConstructorTest()
        {
            UnitInfoMessage message = new UnitInfoMessage();
            UnitInfoMessageReceivedEventArgs target = new UnitInfoMessageReceivedEventArgs(message);

            Assert.AreSame(message, target.Message);
        }
        public void UnitInfoMessageReceivedEventArgsConstructorNullTest()
        {
            UnitInfoMessageReceivedEventArgs target = new UnitInfoMessageReceivedEventArgs(null);

            Assert.Fail("No exception raised.");
        }