public void RssAggregationEventArgsSeverityTypeTest() { RssAggregationEventArgs target = new RssAggregationEventArgs(); RssSeverityType val = RssSeverityType.Error; target.SeverityType = val; Assert.AreEqual(val, target.SeverityType, "RssToolkit.Rss.RssAggregationEventArgs.SeverityType was not set correctly."); }
public void RssAggregationEventArgsExceptionTest() { RssAggregationEventArgs target = new RssAggregationEventArgs(); Exception val = new Exception("Test"); target.Exception = val; Assert.AreEqual(val.Message, target.Exception.Message, "RssToolkit.Rss.RssAggregationEventArgs.Exception was not set correctly."); }
public void RssAggregationEventArgsMessageTest() { RssAggregationEventArgs target = new RssAggregationEventArgs(); string val = "Error Message Test"; target.Message = val; Assert.AreEqual(val, target.Message, "RssToolkit.Rss.RssAggregationEventArgs.Message was not set correctly."); }
private void target_RssAggregationEvent(object sender, RssAggregationEventArgs eventArgs) { Exception ex = eventArgs.Exception; string message = eventArgs.Message; RssSeverityType severityType = eventArgs.SeverityType; Assert.IsTrue(ex != null); Assert.IsTrue(ex.Message.Length > 0); Assert.IsTrue(severityType == RssSeverityType.Error); isError = true; }