public void Clustering_TwoFrames() { var clustering = new ClusteringService(); var frame1 = new Order().Random(10); var frame2 = new Order().Random(11); var frame3 = new Order().Random(12); var frame4 = new Order().Random(13); var frame5 = new Order().Random(18); var frame6 = new Order().Random(19); var frame7 = new Order().Random(20); var frame8 = new Order().Random(21); var frame9 = new Order().Random(22); frame1.OrderDirection = OrderDirections.SELL; frame3.OrderDirection = OrderDirections.SELL; frame5.OrderDirection = OrderDirections.SELL; frame7.OrderDirection = OrderDirections.SELL; frame9.OrderDirection = OrderDirections.SELL; var frames = new[] { frame1, frame2, frame3, frame4, frame5, frame6, frame7, frame8, frame9 }; var results = clustering.Cluster(frames); var hm = results; }
public void Clustering_ReturnsEmpty_ForNullArgs() { var clustering = new ClusteringService(); var cluster = clustering.Cluster(null); Assert.IsNotNull(cluster); Assert.AreEqual(cluster.Count, 0); }