public void ReviewersThatHaveReviewedUniqueTitlesShouldNotBeSimilar() { var r1 = ReviewerBuilder.BuildReviewer1(); var r2 = ReviewerBuilder.BuildAReviewerThatReviewedSomethingUnique(); euclideanDistance = new EuclideanDistance(r1, r2); Assert.AreEqual(0, euclideanDistance.Score()); }
public void ReviewersThatHaveTheSameTasteShouldHaveAPerfectScore() { var r1 = ReviewerBuilder.BuildReviewer1(); euclideanDistance = new EuclideanDistance(r1, r1); Assert.AreEqual(1.0, euclideanDistance.Score()); }