コード例 #1
0
        public void TestGetResource()
        {
            var target = new Hand();
            target.modifyBrick(2);
            target.modifyGrain(3);
            target.modifyLumber(4);
            target.modifyOre(5);
            target.modifyWool(6);

            Assert.AreEqual(2, target.getResource("brick"));
            Assert.AreEqual(3, target.getResource("grain"));
            Assert.AreEqual(4, target.getResource("lumber"));
            Assert.AreEqual(5, target.getResource("ore"));
            Assert.AreEqual(6, target.getResource("wool"));
        }