public void Should_Not_Pop_If_Target_Is_Stock() { IPile pile = new FoundationPile(); var cardACE = new Card(1, CardType.Spade); pile.Push(cardACE); IPile target = new StockPile(); Assert.False(pile.PopRefactor(target)); }
public void Should_Pop_If_Target_Is_Not_Stock() { IPile pile = new FoundationPile(); var cardACE = new Card(1, CardType.Spade); pile.Push(cardACE); Mock <IPile> mockPile = new Mock <IPile>(); IPile target = new TableauPile(); Assert.True(pile.PopRefactor(target)); }