コード例 #1
0
ファイル: SupplyTests.cs プロジェクト: saywordsahn/dominion
        public void NoProvincesRemain_returns_true()
        {
            var victorySupply  = new List <Pile>();
            var kingdomSupply  = new List <Pile>();
            var treasureSupply = new List <Pile>();

            var supply = new Supply(treasureSupply, victorySupply, kingdomSupply);

            var actual = supply.NoProvincesRemain();

            Assert.True(actual);
        }
コード例 #2
0
ファイル: SupplyTests.cs プロジェクト: saywordsahn/dominion
        public void NoProvincesRemain_returns_false()
        {
            var victorySupply = new List <Pile>()
            {
                new Pile(new List <Card>()
                {
                    Card.Province
                })
            };

            var kingdomSupply  = new List <Pile>();
            var treasureSupply = new List <Pile>();

            var supply = new Supply(treasureSupply, victorySupply, kingdomSupply);

            var actual = supply.NoProvincesRemain();

            Assert.False(actual);
        }