예제 #1
0
        public void ClearTest()
        {
            var bases = new Bases();

            // Put a player on first
            var player = new BinaryBaseball.Common.Player();

            bases.Occupied[0] = player;

            // Clear the bases
            bases.Clear();

            // All bases should be null (not occupied by players)
            foreach (var b in bases.Occupied)
            {
                Assert.IsNull(b);
            }
        }