Example #1
0
        public void Test1()
        {
            // Arrange
            int[] state = { 1, 0, 0, 0, 0, 1, 0, 0 };
            int   days  = 1;

            // Act
            int[] result = Problem1.EvolveState(state, days);

            // Assert
            int[] expectedResult = { 0, 1, 0, 0, 1, 0, 1, 0 };
            Assert.Equal(expectedResult, result);
        }