Ejemplo n.º 1
0
        public List <Card> CompareListTest(List <Card> CardsToFind, Dictionary <string, int> Collection)
        {
            List <Card> result = CardComparer.CompareList(CardsToFind, Collection);

            return(result);
            // TODO: add assertions to method CardComparerTest.CompareListTest(List`1<Card>, Dictionary`2<String,Int32>)
        }
Ejemplo n.º 2
0
        public void Should_Find_Hit()
        {
            var cardsToFind = new List <Card> {
                new Card {
                    Name = "a", Quantity = 1
                }
            };
            var collection = new Dictionary <string, int> {
                { "a", 1 }
            };

            var hits = CardComparer.CompareList(cardsToFind, collection);

            hits.ShouldNotBeEmpty();
        }