Ejemplo n.º 1
0
        public void test3()
        {
            // Arrange
            NetHackController controller = new NetHackController();

            String[] expected = new String[] { "B.B.B.BB.", "<.X.X<>.>", "<.<<>.>.>", "<<....>.>", "........>", "........." };

            // Act
            String[] result = controller.explode("B.B.B.BB.", 2);

            // Assert
            CollectionAssert.AreEqual(expected, result);
        }
Ejemplo n.º 2
0
        public void test5()
        {
            // Arrange
            NetHackController controller = new NetHackController();

            String[] expected = new String[] { "..B.BB..B.B..B...", ".<.X<>><.X.><.>..", "<.<<>.X><.><>..>.", ".<<..X.X>.<>.>..>", "<<..<.X.>X..>.>..", "<..<.<.><>>..>.>.", "..<.<..<>.>>..>.>", ".<.<..<..>.>>..>.", "<.<..<....>.>>..>", ".<..<......>.>>..", "<..<........>.>>.", "..<..........>.>>", ".<............>.>", "<..............>.", "................>", "................." };

            // Act
            String[] result = controller.explode("..B.BB..B.B..B...", 1);

            // Assert
            CollectionAssert.AreEqual(expected, result);
        }
Ejemplo n.º 3
0
        public void test2()
        {
            // Arrange
            NetHackController controller = new NetHackController();

            String[] expected = new String[] { "..B.B..B", "........" };

            // Act
            String[] result = controller.explode("..B.B..B", 10);

            // Assert
            CollectionAssert.AreEqual(expected, result);
        }