Exemple #1
0
 public void TestUpdateMembers()
 {
     G1.UpdateMembers(Exs1);
     Assert.AreEqual(G1.Count, 2);
     G2.UpdateMembers(Exs2);
     Assert.AreEqual(G2.Count, 1);
     G3.UpdateMembers(Exs2);
     Assert.AreEqual(G3.Count, 0);
 }
Exemple #2
0
 public void TestCalculateSimilarityScoreGroup()
 {
     G1.UpdateMembers(Exs1);
     G3.UpdateMembers(Exs1);
     Assert.AreEqual(1 / (double)2, G1.CalculateSimilarityScore(G3), .1);
 }