Пример #1
0
 public void TestCalculateSimilarityScoreExample()
 {
     Assert.AreEqual(G1.CalculateSimilarityScore(Ex2), 0);
     Assert.AreEqual(G2.CalculateSimilarityScore(Ex2), 0);
     Assert.AreEqual(G3.CalculateSimilarityScore(Ex2), 0);
     Assert.AreEqual(1 / (double)3, G3.CalculateSimilarityScore(Ex1), .1);
     Assert.AreEqual(1 / (double)3, G2.CalculateSimilarityScore(Ex1), .1);
     Assert.AreEqual(0, G1.CalculateSimilarityScore(Ex1), .1);
 }