public void TestAnalysisLength() { // Expected number of Drop events in the cluster int expected = Cluster.GetEvents("Drop").Count(); // Actual number of drop events within the cluster int actual = Analysis.GetTotalDropCount(); // Test to ensure the object has removed all non-drop events Assert.AreEqual(expected, actual); }
/// <summary> /// Primary Constructor /// </summary> /// <param name="cluster">EventCollection of failed events</param> public FailAnalysis(EventCollection cluster) { Cluster = new EventCollection(cluster.GetEvents("Fail")); }
/// <summary> /// Primary Constructor /// </summary> /// <param name="cluster">EventCollection of dropped events</param> public DropAnalysis(EventCollection cluster) { Cluster = new EventCollection(cluster.GetEvents("Drop")); }
public List <Event> GetEvents() { return(_events.GetEvents()); }
/// <summary> /// Primary Constructor /// </summary> /// <param name="cluster">EventCollection of failed events</param> public FailAnalysis(EventCollection cluster) { Cluster = new EventCollection(cluster.GetEvents("Fail")); }
/// <summary> /// Primary Constructor /// </summary> /// <param name="cluster">EventCollection of dropped events</param> public DropAnalysis(EventCollection cluster) { Cluster = new EventCollection(cluster.GetEvents("Drop")); }