Esempio n. 1
0
        public void GetTapeEquilibriumMinimumEmptyTest()
        {
            // Arrange
            TapeEquilibrium tapeEquilibrium = new TapeEquilibrium();

            int[] tape = new int[] { };

            // Action
            var current = tapeEquilibrium.GetTapeEquilibriumMinimum(tape);

            // Assert
            var expected = 0;

            Assert.AreEqual(expected, current);
        }
Esempio n. 2
0
        public void GetTapeEquilibriumMinimumExtremeLargeTest()
        {
            // Arrange
            TapeEquilibrium tapeEquilibrium = new TapeEquilibrium();

            int[] tape = new int[] { 1082132608, 1082132608, 1082132608, 1082132608, 1082132608 };

            // Action
            var current = tapeEquilibrium.GetTapeEquilibriumMinimum(tape);

            // Assert
            var expected = 1082132608;

            Assert.AreEqual(expected, current);
        }