public void DiceCoefficient_Completely_Different_Bigrams_Returns_0() { string testValue1 = "abcd"; string testValue2 = "wxyz"; double expected = 0.0; var sut = new Bigram(testValue1); var sutCompare = new Bigram(testValue2); var result = sut.DiceCoefficient(sutCompare); Assert.That(result, Is.EqualTo(expected)); }
public void DiceCoefficient_Matching_Strings_Returns_1() { string testValue = "test"; double expected = 1.0; var sut = new Bigram(testValue); var sutCompare = new Bigram(testValue); var result = sut.DiceCoefficient(testValue); Assert.That(result, Is.EqualTo(expected)); }