public void CompareTo_SecondBetterThanFirst_ReturnsPositiveValue() { var firstSkillLevel = new SkillLevel(); firstSkillLevel.SetRating(new DummyRating() { Score = 0.5d }); var secondSkillLevel = new SkillLevel(); secondSkillLevel.SetRating(new DummyRating() { Score = 1.0d }); var comparisonResult = firstSkillLevel.CompareTo(secondSkillLevel); Assert.True(comparisonResult > 0.0d); }
public void CompareTo_SameScore_ReturnsZero() { var firstSkillLevel = new SkillLevel(); firstSkillLevel.SetRating(new DummyRating() { Score = 1.0d }); var secondSkillLevel = new SkillLevel(); secondSkillLevel.SetRating(new DummyRating() { Score = 1.0d }); var comparisonResult = firstSkillLevel.CompareTo(secondSkillLevel); Assert.Equal(0.0d, comparisonResult); }