Exemple #1
0
        public void TestSigueViva3()
        {
            //Arrange
            bool estadoActual = true;
            byte num          = 3;
            bool estado;

            //Act
            estado = Celula.SigueViva(estadoActual, num);

            //Assert
            Assert.IsTrue(estado);
        }
Exemple #2
0
        public void TestMuere5()
        {
            //Arrange
            bool estadoActual = true;
            byte num          = 5;
            bool estado;

            //Act
            estado = Celula.SigueViva(estadoActual, num);

            //Assert
            Assert.IsFalse(estado);
        }
Exemple #3
0
        public void TestSigueMuerta2()
        {
            //Arrange
            bool estadoActual = false;
            byte num          = 2;
            bool estado;

            //Act
            estado = Celula.SigueViva(estadoActual, num);

            //Assert
            Assert.IsFalse(estado);
        }