Example #1
0
        public void HandleEventWithAnnounceNull()
        {
            AnnounceEventArgs args = new AnnounceEventArgs();

            args.Announce = null;
            this.filter.HandleEvent(null, args);
            Assert.Null(this.filteredAnnounce, "got an Announce object");
        }
Example #2
0
 public void HandleEvent(object sender, AnnounceEventArgs args)
 {
     if (args != null)
     {
         Announce announce = args.Announce;
         if (this.matcher.Match(announce))
         {
             this.HandleMessage(this, args);
         }
     }
 }
Example #3
0
 private void HandleEvent(object sender, AnnounceEventArgs args)
 {
 }
Example #4
0
 private void HandleAnnounceEvent(object sender, AnnounceEventArgs args)
 {
     this.announce = args.Announce;
 }
Example #5
0
 private void HandleFilteredEvent(object sender, AnnounceEventArgs args)
 {
     this.filteredAnnounce = args.Announce;
 }