public void Should_ShouldChangeState(SeatDay11 seat, int neighbours, bool expected) { var strategy = new InVisionNeighbourStrategy(); var result = strategy.ShouldChangeState(seat, neighbours); Assert.Equal(expected, result); }
public void Should_CountOccupiedNeighbours(SeatDay11[,] seats, int i, int j, int expected) { var strategy = new InVisionNeighbourStrategy(); var result = strategy.CountOccupiedNeighbours(seats, i, j); Assert.Equal(expected, result); }