public void Return29Cubes_AfterExecuting1Cycle() { const string initialState = @".#. ..# ###"; var sut = new PocketFourDimension(initialState); sut.DoCycle(); Assert.Equal(29, sut.ActiveCubes); }
public void SolveSecondPuzzle() { const string initialState = @".####### #######. ###.###. #....### .#..##.. #.#.###. ###..### .#.#.##."; var sut = new PocketFourDimension(initialState); sut.DoCycle(); sut.DoCycle(); sut.DoCycle(); sut.DoCycle(); sut.DoCycle(); sut.DoCycle(); Assert.Equal(2296, sut.ActiveCubes); }