Example #1
0
        public void Priority_ReturnsInteger_WhenCalled()
        {
            // Arrange
            CellInformation     info = CreateCellInformation();
            UnderpopulationRule sut  = CreateSut();

            // Act
            sut.Apply(info);

            // Assert
            sut.Priority.ShouldEqual(1);
        }
Example #2
0
        public void Apply_SetsStatusToDead_WhenCalled()
        {
            // Arrange
            CellInformation     info = CreateCellInformation();
            UnderpopulationRule sut  = CreateSut();

            // Act
            sut.Apply(info);

            // Assert
            info.Status.ShouldEqual(Cell.Status.Dead);
        }