Пример #1
0
        public void TestDoMeldsOverlapNegativeEmpty()
        {
            Meld meldA = new Meld();
            Meld meldB = new Meld();

            Assert.IsFalse(meldA.DoesOverlap(meldB));
        }
Пример #2
0
        public void TestDoMeldsOverlapPositive()
        {
            Meld meldA = new Meld();
            Meld meldB = new Meld();

            meldA.AddCard(new Card("Ah"));
            meldA.AddCard(new Card("As"));
            meldA.AddCard(new Card("Ac"));

            meldB.AddCard(new Card("Ah"));
            meldB.AddCard(new Card("As"));
            meldB.AddCard(new Card("Ad"));

            Assert.IsTrue(meldA.DoesOverlap(meldB));
        }
Пример #3
0
        public void TestDoMeldsOverlapNegativeSeparate()
        {
            Meld meldA = new Meld();
            Meld meldB = new Meld();

            meldA.AddCard(new Card("Ah"));
            meldA.AddCard(new Card("As"));
            meldA.AddCard(new Card("Ac"));

            meldB.AddCard(new Card("Kh"));
            meldB.AddCard(new Card("Ks"));
            meldB.AddCard(new Card("Kc"));

            Assert.IsFalse(meldA.DoesOverlap(meldB));
        }