Exemplo n.º 1
0
        public void InitDummy()//13*4*2 + 2
        {
            Dummy.Clear();

            Tile      tile;
            TileColor color = TileColor.RED;
            var       type  = Enum.GetValues(color.GetType());

            for (int j = 0; j < 2; j++)
            {
                foreach (TileColor v in type)
                {
                    for (int k = 1; k <= 13; k++)
                    {
                        tile = new NumberTile(v, k);
                        Dummy.Add(tile);
                    }
                }
            }

            Dummy.Add(new JokerTile(TileColor.RED));
            Dummy.Add(new JokerTile(TileColor.BLACK));

            return;
        }
Exemplo n.º 2
0
 public void TestAdd(int a, int b, int want)
 {
     Assert.Equal(want, t.Add(a, b));
 }