Пример #1
0
        public void CalculateAssociationRulesFor2ItemSetsTest__NoSupport()
        {
            var mockrepo = new Mock <IAprioriRepository>();

            mockrepo.Setup(m => m.GetCountSingle("banana")).Returns(10);
            mockrepo.Setup(m => m.GetCountSingle("apple")).Returns(12);
            mockrepo.Setup(m => m.GetCountDouble("apple", "banana")).Returns(12);

            var sut = new Apriori(mockrepo.Object);

            var test = new List <string> {
                "apple", "banana"
            };

            var result = sut.CalculateAssociationRulesFor2ItemSets(test, 1, 1, 100);
            //Assert ??????
        }