示例#1
0
 public void TestNotificationEvent()
 {
     foreach (NotificationEvent notificationEvent in NotificationEvent.Values())
     {
         Assert.IsNotNull(notificationEvent.ToString());
         Assert.IsNotEmpty(notificationEvent.ToString());
     }
     Assert.AreEqual(0, (int)NotificationEvent.PACKAGE_ACTIVATE);
     Assert.AreEqual("PACKAGE_COMPLETE", (string)NotificationEvent.PACKAGE_COMPLETE);
     Assert.AreEqual("PACKAGE_EXPIRE", NotificationEvent.PACKAGE_EXPIRE.GetName());
 }