示例#1
0
        public void ExactStringBucketer_SimpleStrings_MultipleBucket()
        {
            ExactStringBucketer bucketer = new ExactStringBucketer();

            RequestSequence sequence1 = GenerateSequence(1, "non-matching 1");
            RequestSequence sequence2 = GenerateSequence(1, "non-matching 2");

            bucketer.Add(sequence1);
            bucketer.Add(sequence2);

            Assert.Equal(2, bucketer.Bucketize().Count);
        }
示例#2
0
        public void ExactStringBucketer_SimpleStrings_SingleBucket()
        {
            ExactStringBucketer bucketer = new ExactStringBucketer();

            RequestSequence sequence1 = GenerateSequence(1, "matching");
            RequestSequence sequence2 = GenerateSequence(1, "matching");

            bucketer.Add(sequence1);
            bucketer.Add(sequence2);

            Assert.Single(bucketer.Bucketize());
        }