Ejemplo n.º 1
0
        public void RuleControllerTest_GetRule()
        {
            var expected = service.Get(1);
            var actual   = controller.GetRule(1);

            Assert.AreEqual(expected.RuleId, actual.RuleId);
        }
        public void neighbour_count_should_be_3_for_birth_in_next_geneartion()
        {
            // Arrange
            var controller = new RuleController(_ruleService);

            // Act
            var result = controller.GetRule();

            // Assert
            Assert.IsNotNull(result);
            //Assert.AreEqual(3, result.Birth[0]);
        }
        public void neighbour_count_should_be_2_or_3_for_survival_to_next_geneartion()
        {
            // Arrange
            var controller = new RuleController(_ruleService);

            // Act
            var result = controller.GetRule();

            // Assert
            Assert.IsNotNull(result);
            //Assert.AreEqual(2, result.Survival[0]);
            //Assert.AreEqual(3, result.Survival[1]);
        }
        public void GetRule()
        {
            // Arrange
            var controller = new RuleController(_ruleService);

            // Act
            var result = controller.GetRule();

            // Assert
            Assert.IsNotNull(result);
            //Assert.AreEqual(2, result.Survival[0]);
            //Assert.AreEqual(3, result.Survival[1]);
            //Assert.AreEqual(3, result.Birth[0]);
        }