コード例 #1
0
        public void CompareDecks_Same_Returns_True()
        {
            Deck52Cards deck1 = new Deck52Cards();
            Deck52Cards deck2 = new Deck52Cards();

            Assert.Equal(true, deck1.Equals(deck2));
        }
コード例 #2
0
        public void CompareDecks_DifferentSize_Returns_False()
        {
            Deck52Cards deck1 = new Deck52Cards();
            Deck52Cards deck2 = new Deck52Cards();

            deck1.Burn();
            Assert.Equal(false, deck1.Equals(deck2));
        }
コード例 #3
0
        public void CompareDecks_DifferentAfterSHuffling_Returns_False()
        {
            Deck52Cards deck1 = new Deck52Cards();
            Deck52Cards deck2 = new Deck52Cards();

            deck1.Shuffle();
            deck2.Shuffle();
            Assert.Equal(false, deck1.Equals(deck2));
        }
コード例 #4
0
        public void CompareDecks_Null_Returns_False()
        {
            Deck52Cards deck1 = new Deck52Cards();

            Assert.Equal(false, deck1.Equals(null));
        }