public void IsEmpty_FullStack_IsFalse() { TableauStack tableau = Setup(); bool isEmpty = tableau.IsEmpty(); Assert.IsFalse(isEmpty); }
public void PopTopCard_TakeTopCard_IsFaceUpCard() { TableauStack tableau = Setup(); Card card = tableau.PopTopCard(); Assert.IsTrue(card.IsFaceUp); }
public void PopTopCard_EmptyStack_IsNull() { TableauStack tableau = new TableauStack(new List <Models.Card>()); Card card = tableau.PopTopCard(); Assert.IsNull(card); }
public void IsEmpty_EmptyStack_IsTrue() { TableauStack tableau = new TableauStack(new List <Models.Card>()); bool isEmpty = tableau.IsEmpty(); Assert.IsTrue(isEmpty); }
public void PopTopCard_TakeTopCard_IsFiveClubs() { TableauStack tableau = Setup(); Card card = tableau.PopTopCard(); Assert.AreEqual(Enums.Values.Five, card.Value); Assert.AreEqual(Enums.Suits.Clubs, card.Suit); }
public void ViewTopCard_ViewFirstCard_IsFiveClubs() { TableauStack tableau = Setup(); Card card = tableau.ViewTopCard(); Assert.AreEqual(Enums.Values.Five, card.Value); Assert.AreEqual(Enums.Suits.Clubs, card.Suit); }
public void PopTopCard_TakeSecondCard_IsQueenSpades() { TableauStack tableau = Setup(); tableau.PopTopCard(); Card card = tableau.PopTopCard(); Assert.AreEqual(Enums.Values.Queen, card.Value); Assert.AreEqual(Enums.Suits.Spades, card.Suit); }
public void PopTopCard_TakeFourthCard_IsFaceUp() { TableauStack tableau = Setup(); tableau.PopTopCard(); tableau.PopTopCard(); tableau.PopTopCard(); Card card = tableau.PopTopCard(); Assert.IsFalse(card.IsFaceUp); }
public void PopTopCard_TakeFourthCard_IsSixHearts() { TableauStack tableau = Setup(); tableau.PopTopCard(); tableau.PopTopCard(); tableau.PopTopCard(); Card card = tableau.PopTopCard(); Assert.AreEqual(Enums.Values.Six, card.Value); Assert.AreEqual(Enums.Suits.Hearts, card.Suit); }
public void ViewTopCard_ViewFifthCard_IsFaceDown() { TableauStack tableau = Setup(); tableau.PopTopCard(); tableau.PopTopCard(); tableau.PopTopCard(); tableau.PopTopCard(); Card card = tableau.ViewTopCard(); Assert.IsFalse(card.IsFaceUp); }
public void ViewTopCard_ViewSixthCard_IsNull() { TableauStack tableau = Setup(); tableau.PopTopCard(); tableau.PopTopCard(); tableau.PopTopCard(); tableau.PopTopCard(); tableau.PopTopCard(); Card card = tableau.ViewTopCard(); Assert.IsNull(card); }
public void ViewTopCard_ViewFifthCard_IsEightHearts() { TableauStack tableau = Setup(); tableau.PopTopCard(); tableau.PopTopCard(); tableau.PopTopCard(); tableau.PopTopCard(); Card card = tableau.ViewTopCard(); Assert.AreEqual(Enums.Values.Eight, card.Value); Assert.AreEqual(Enums.Suits.Hearts, card.Suit); }