public void Return60Cubes_AfterExecuting2Cycles() { const string initialState = @".#. ..# ###"; var sut = new PocketFourDimension(initialState); sut.DoCycle(); sut.DoCycle(); Assert.Equal(60, 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); }