Exemplo n.º 1
0
 public void Initalize()
 {
     _frame = new Frame(null);
     _game = new Game(new Frame[] { _frame });
     _gameFactory = Mock.Of<GameFactory>(factory => factory.Create() == _game);
     //TODO !!! method must be virtual to be able to mock (or should mock an interface!?)
 }
Exemplo n.º 2
0
 internal Game(Frame[] frames)
 {
     this._frames = frames;
     this._currentFrameIndex = 0;
 }
Exemplo n.º 3
0
 internal Frame(Frame nextFrame)
 {
     this._nextFrame = nextFrame;
 }