Exemple #1
0
        public void Token()
        {
            var ship = new Ship(new TokenPool());
            Assert.IsNull(ship.Token);

            ship.Add(ItemToken.newCotton());
            Assert.AreEqual(ItemToken.newCotton(), ship.Token);
        }
Exemple #2
0
        public void Return()
        {
            var ship = new Ship(new TokenPool());
            ship.Add(ItemToken.newHemp());

            ship.Return();

            Assert.AreEqual(null, ship.Token);
        }
Exemple #3
0
        public void MoveTo(Ship ship, ItemToken token)
        {
            int temp = count(token);

            Debug.Assert(temp != 0, "コマが0個です");

            _tokens.Remove(token);

            ship.Add(token);
        }
Exemple #4
0
 public void Add()
 {
     var ship = new Ship(new TokenPool());
     ship.Add(ItemToken.newCopper());
 }