public void SimMetricsMatcher_IsMatch_AcceptOnMatch() { // Assign var matcher = new SimMetricsMatcher("test"); // Act double result = matcher.IsMatch("test"); // Assert Check.That(result).IsEqualTo(1.0); }
public void SimMetricsMatcher_IsMatch_RejectOnMatch() { // Assign var matcher = new SimMetricsMatcher(MatchBehaviour.RejectOnMatch, "test"); // Act double result = matcher.IsMatch("test"); // Assert Check.That(result).IsEqualTo(0.0); }
public void SimMetricsMatcher_IsMatch_2() { // Assign var matcher = new SimMetricsMatcher("The cat walks in the street."); // Act double result = matcher.IsMatch("Hello"); // Assert Check.That(result).IsStrictlyLessThan(0.1).And.IsStrictlyGreaterThan(0.05); }