Exemplo n.º 1
0
        public void Ctor_NotEmptyWordList_CardInstanceForWordListSuccessfullyCreated()
        {
            var words = GetNotEmptyWordsArray();

            var card = new Card(0, words);

            CollectionAssert.AreEqual(words, card.Words);
        }
Exemplo n.º 2
0
        public void Ctor_Always_SetCorrectProperties()
        {
            var index = 7;
            var words = new string[] { "word1", "word2", "word3" };
            var card = new Card(index, words);

            Assert.AreEqual(index, card.Index);
            CollectionAssert.AreEquivalent(words, card.Words);
        }