public void ShouldIdentifyLongestMatch()
        {
            const double QueryLength = 9d;
            var          matches     = TestUtilities.GetMatchedWith(new float[] { 5, 9, 11, 14 }, new float[] { 0, 5, 9, 10 });

            var coverage = qrc.GetCoverage(matches, QueryLength, fingerprintLengthInSeconds);

            Assert.AreEqual(5.4586, coverage.SourceMatchLength, 0.001);
        }
        public void ShouldIdentifyLongestMatch()
        {
            var matches = new SortedSet <MatchedPair>
            {
                new MatchedPair(new HashedFingerprint(null, null, 10, 5d, new string[0]), new SubFingerprintData(null, 1, 0d, null, null), 100),
                new MatchedPair(new HashedFingerprint(null, null, 20, 9d, new string[0]), new SubFingerprintData(null, 5, 5d, null, null), 100),
                new MatchedPair(new HashedFingerprint(null, null, 30, 11d, new string[0]), new SubFingerprintData(null, 9, 9d, null, null), 100),
                new MatchedPair(new HashedFingerprint(null, null, 40, 14d, new string[0]), new SubFingerprintData(null, 10, 10d, null, null), 100)
            };

            var coverage = qrc.GetCoverage(matches, 10d, new DefaultFingerprintConfiguration());

            Assert.AreEqual(5.4586, coverage.SourceMatchLength, 0.001);
        }