コード例 #1
0
        public void ShouldInjectWindowManagerIntoGrid()
        {
            //given

            var gridConfig = new GridConfig
            {
                GridElements = new[]
                {
                    new Dimensions(new Point(0, 0), new Size(300, 300)),
                }
            };
            var grid = _gridFactory.FromConfig(gridConfig);

            //when
            grid.MoveActiveWindow(GridDirections.Left);
            //then

            A.CallTo(() => _windowManager.GetActiveWindow()).MustHaveHappened();
        }
コード例 #2
0
        private Grid GetGrid(int gridIndex)
        {
            var grid = _gridFactory.FromConfig(_gridConfigs[gridIndex]);

            return(grid);
        }