コード例 #1
0
        public void RemovingMoreThan13MarkersDoesNotChangeTheCounter()
        {
            MarkerStack markerStack = MarkerStack.GameMarkerStack();

            try
            {
                markerStack.removeMarkers(13);
                markerStack.removeMarkers(1);
            }
            catch (ArgumentOutOfRangeException exArg)
            {
                Assert.AreEqual(0, markerStack.Count());
            }
        }
コード例 #2
0
        public void AddingMoreThan13MarkersDoesNotChangeTheCounter()
        {
            MarkerStack playerMarkerStack = MarkerStack.PlayerMarkerStack();

            try
            {
                playerMarkerStack.addMarkers(13);
                playerMarkerStack.addMarkers(1);
            }
            catch (ArgumentOutOfRangeException exArg)
            {
                Assert.AreEqual(13, playerMarkerStack.Count());
            }
        }
コード例 #3
0
        public void NewGameMarkerStackHas13Markers()
        {
            MarkerStack gameMarkerStack = MarkerStack.GameMarkerStack();

            Assert.AreEqual(13, gameMarkerStack.Count());
        }
コード例 #4
0
        public void NewPlayerMarkerStackIsEmpty()
        {
            MarkerStack playerMarkerStack = MarkerStack.PlayerMarkerStack();

            Assert.AreEqual(0, playerMarkerStack.Count());
        }