예제 #1
0
        public void TestGetCountOfShips()
        {
            INextShot stubConsoleReader = new FakeConsoleReader();
            SeaBattle seaBattle         = new SeaBattle(stubConsoleReader);

            Assert.IsTrue(seaBattle.GetNumberOfShipsOnStart() <= 17);
        }
예제 #2
0
        public void TestSeaBattleCompareCountOfShipsAndShots()
        {
            INextShot stubConsoleReader = new FakeConsoleReader();
            SeaBattle seaBattle         = new SeaBattle(stubConsoleReader);

            seaBattle.StartBattle();
            Assert.IsTrue(seaBattle.GetNumberOfShipsOnStart() < seaBattle.GetCountOfShots());
        }
예제 #3
0
        public void TestGetCountOfShotsOnTheEnd()
        {
            INextShot stubConsoleReader = new FakeConsoleReader();
            SeaBattle seaBattle         = new SeaBattle(stubConsoleReader);

            seaBattle.StartBattle();
            Assert.IsTrue(seaBattle.GetCountOfShots() <= 100);
        }